From d5c08dfebc2202ba8be0264ae92c0c232d0ff473 2011-12-18 02:36:19 From: MinRK Date: 2011-12-18 02:36:19 Subject: [PATCH] don't load gui/pylab in console frontend --- diff --git a/IPython/frontend/terminal/console/app.py b/IPython/frontend/terminal/console/app.py index b836abe..f1ada55 100644 --- a/IPython/frontend/terminal/console/app.py +++ b/IPython/frontend/terminal/console/app.py @@ -118,6 +118,10 @@ class ZMQTerminalIPythonApp(TerminalIPythonApp, IPythonConsoleApp): 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: