[accerciser] ipython: Update to match the latest IPython API



commit 7abc7647fd3b520fec2eee11d10b1d5bafb616d9
Author: Javier Hernández <jhernandez emergya com>
Date:   Tue Feb 25 02:09:21 2014 +0100

    ipython: Update to match the latest IPython API

 plugins/ipython_view.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/plugins/ipython_view.py b/plugins/ipython_view.py
index bf2e89b..9da3a97 100755
--- a/plugins/ipython_view.py
+++ b/plugins/ipython_view.py
@@ -70,7 +70,7 @@ class IterableIPShell:
     '''
     io = IPython.utils.io
     if input_func:
-      IPython.frontend.terminal.interactiveshell.raw_input_original = input_func
+      IPython.terminal.interactiveshell.raw_input_original = input_func
     if cin:
       io.stdin = io.IOStream(cin)
     if cout:
@@ -98,7 +98,7 @@ class IterableIPShell:
 
     # InteractiveShell inherits from SingletonConfigurable, so use instance()
     #
-    self.IP = IPython.frontend.terminal.embed.InteractiveShellEmbed.instance(\
+    self.IP = IPython.terminal.embed.InteractiveShellEmbed.instance(\
             config=cfg, user_ns=user_ns)
 
     sys.stdout, sys.stderr = old_stdout, old_stderr
@@ -169,7 +169,7 @@ class IterableIPShell:
           self.IP.autoedit_syntax):
           self.IP.edit_syntax_error()
       if not self.iter_more:
-          source_raw = self.IP.input_splitter.source_raw_reset()[1]
+          source_raw = self.IP.input_splitter.raw_reset()
           self.IP.run_cell(source_raw, store_history=True)
       else:
           # TODO: Auto-indent
@@ -608,4 +608,4 @@ if __name__ == "__main__":
   window.add(IPythonView())
   window.show_all()
   gtk.main()
-    
+ 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]