Skip to content
Browse files

Merge pull request #1173 from minrk/pylab-noop

Don't load gui/pylab in console frontend, where it makes no sense.

Closes #1170.
  • Loading branch information...
2 parents e953107 + d5c08df commit c8874d7f4a5684571efbe51241f4978bf59d94b6 @fperez fperez committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 IPython/frontend/terminal/console/app.py
View
4 IPython/frontend/terminal/console/app.py
@@ -118,6 +118,10 @@ def init_shell(self):
display_banner=False, profile_dir=self.profile_dir,
ipython_dir=self.ipython_dir, kernel_manager=self.kernel_manager)
+ def init_gui_pylab(self):
+ # no-op, because we don't want to import matplotlib in the frontend.
+ pass
+
def handle_sigint(self, *args):
if self.shell._executing:
if self.kernel_manager.has_kernel:

0 comments on commit c8874d7

Please sign in to comment.
Something went wrong with that request. Please try again.