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