From 5a3b80ff2bb8fea81170b81bbe9a0f2884cb43e0 2014-12-12 23:10:32 From: Carlos Cordoba Date: 2014-12-12 23:10:32 Subject: [PATCH] Improve detection of when to load guiref magic --- diff --git a/IPython/qt/console/ipython_widget.py b/IPython/qt/console/ipython_widget.py index f08f38e..477423c 100644 --- a/IPython/qt/console/ipython_widget.py +++ b/IPython/qt/console/ipython_widget.py @@ -280,8 +280,7 @@ class IPythonWidget(FrontendWidget): """Handle kernel info replies.""" content = rep['content'] if not self._guiref_loaded: - lang_info = content.get('language_info') - if lang_info.get('name') == 'python': + if content.get('implementation') == 'ipython': self._load_guiref_magic() self._guiref_loaded = True