Show More
@@ -244,11 +244,12 b' class Demo(object):' | |||
|
244 | 244 | # it ensures that things like color scheme and the like are always in |
|
245 | 245 | # sync with the ipython mode being used. This class is only meant to |
|
246 | 246 | # be used inside ipython anyways, so it's OK. |
|
247 | self.ip_ns = __IPYTHON__.user_ns | |
|
248 | self.ip_colorize = __IPYTHON__.pycolorize | |
|
249 | self.ip_showtb = __IPYTHON__.showtraceback | |
|
250 | self.ip_runlines = __IPYTHON__.runlines | |
|
251 | self.shell = __IPYTHON__ | |
|
247 | ip = get_ipython() # this is in builtins whenever IPython is running | |
|
248 | self.ip_ns = ip.user_ns | |
|
249 | self.ip_colorize = ip.pycolorize | |
|
250 | self.ip_showtb = ip.showtraceback | |
|
251 | self.ip_runlines = ip.runlines | |
|
252 | self.shell = ip | |
|
252 | 253 | |
|
253 | 254 | # load user data and initialize data structures |
|
254 | 255 | self.reload() |
General Comments 0
You need to be logged in to leave comments.
Login now