Show More
@@ -29,6 +29,8 b' import re' | |||||
29 | import sys |
|
29 | import sys | |
30 | import tempfile |
|
30 | import tempfile | |
31 | import types |
|
31 | import types | |
|
32 | from weakref import proxy | |||
|
33 | ||||
32 | try: |
|
34 | try: | |
33 | from contextlib import nested |
|
35 | from contextlib import nested | |
34 | except: |
|
36 | except: | |
@@ -1056,7 +1058,8 b' class InteractiveShell(SingletonConfigurable, Magic):' | |||||
1056 |
|
1058 | |||
1057 | # Store myself as the public api!!! |
|
1059 | # Store myself as the public api!!! | |
1058 | ns['get_ipython'] = self.get_ipython |
|
1060 | ns['get_ipython'] = self.get_ipython | |
1059 |
|
1061 | ns['_ipy'] = proxy(self) # Weak ref since this is a circular reference | ||
|
1062 | ||||
1060 | ns['exit'] = self.exiter |
|
1063 | ns['exit'] = self.exiter | |
1061 | ns['quit'] = self.exiter |
|
1064 | ns['quit'] = self.exiter | |
1062 |
|
1065 |
General Comments 0
You need to be logged in to leave comments.
Login now