Show More
@@ -160,19 +160,23 b' class InProcessInteractiveShell(ZMQInteractiveShell):' | |||||
160 | #------------------------------------------------------------------------- |
|
160 | #------------------------------------------------------------------------- | |
161 |
|
161 | |||
162 | def enable_gui(self, gui=None): |
|
162 | def enable_gui(self, gui=None): | |
163 |
""" |
|
163 | """Enable GUI integration for the kernel.""" | |
164 | """ |
|
|||
165 | from IPython.kernel.zmq.eventloops import enable_gui |
|
164 | from IPython.kernel.zmq.eventloops import enable_gui | |
166 | if not gui: |
|
165 | if not gui: | |
167 | gui = self.kernel.gui |
|
166 | gui = self.kernel.gui | |
168 | enable_gui(gui, kernel=self.kernel) |
|
167 | return enable_gui(gui, kernel=self.kernel) | |
|
168 | ||||
|
169 | def enable_matplotlib(self, gui=None): | |||
|
170 | """Enable matplotlib integration for the kernel.""" | |||
|
171 | if not gui: | |||
|
172 | gui = self.kernel.gui | |||
|
173 | return super(InProcessInteractiveShell, self).enable_matplotlib(self, gui) | |||
169 |
|
174 | |||
170 | def enable_pylab(self, gui=None, import_all=True, welcome_message=False): |
|
175 | def enable_pylab(self, gui=None, import_all=True, welcome_message=False): | |
171 |
""" |
|
176 | """Activate pylab support at runtime.""" | |
172 | """ |
|
|||
173 | if not gui: |
|
177 | if not gui: | |
174 | gui = self.kernel.gui |
|
178 | gui = self.kernel.gui | |
175 | super(InProcessInteractiveShell, self).enable_pylab(gui, import_all, |
|
179 | return super(InProcessInteractiveShell, self).enable_pylab(gui, import_all, | |
176 | welcome_message) |
|
180 | welcome_message) | |
177 |
|
181 | |||
178 | InteractiveShellABC.register(InProcessInteractiveShell) |
|
182 | InteractiveShellABC.register(InProcessInteractiveShell) |
General Comments 0
You need to be logged in to leave comments.
Login now