##// END OF EJS Templates
qtconsole: Fix non-empty namespace at startup....
Bradley M. Froehle -
Show More
@@ -272,8 +272,12 b' class IPythonWidget(FrontendWidget):'
272 272 def _load_guiref_magic(self):
273 273 """Load %guiref magic."""
274 274 self.kernel_manager.shell_channel.execute('\n'.join([
275 "from IPython.core import usage",
276 "get_ipython().register_magic_function(usage.page_guiref, 'line', 'guiref')",
275 "try:",
276 " _usage",
277 "except:",
278 " from IPython.core import usage as _usage",
279 " get_ipython().register_magic_function(_usage.page_guiref, 'line', 'guiref')",
280 " del _usage",
277 281 ]), silent=True)
278 282
279 283 #---------------------------------------------------------------------------
General Comments 0
You need to be logged in to leave comments. Login now