From e97b3e22c5f824680c52f695ec849098ab40db0c 2012-05-31 02:10:33 From: MinRK Date: 2012-05-31 02:10:33 Subject: [PATCH] fix %gui enable_gui is on the shell object --- diff --git a/IPython/core/magics/basic.py b/IPython/core/magics/basic.py index d170253..f34610e 100644 --- a/IPython/core/magics/basic.py +++ b/IPython/core/magics/basic.py @@ -421,7 +421,7 @@ Defaulting color scheme to 'NoColor'""" opts, arg = self.parse_options(parameter_s, '') if arg=='': arg = None try: - return self.enable_gui(arg) + return self.shell.enable_gui(arg) except Exception as e: # print simple error message, rather than traceback if we can't # hook up the GUI