Show More
@@ -272,8 +272,12 b' class IPythonWidget(FrontendWidget):' | |||||
272 | def _load_guiref_magic(self): |
|
272 | def _load_guiref_magic(self): | |
273 | """Load %guiref magic.""" |
|
273 | """Load %guiref magic.""" | |
274 | self.kernel_manager.shell_channel.execute('\n'.join([ |
|
274 | self.kernel_manager.shell_channel.execute('\n'.join([ | |
275 | "from IPython.core import usage", |
|
275 | "try:", | |
276 | "get_ipython().register_magic_function(usage.page_guiref, 'line', 'guiref')", |
|
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 | ]), silent=True) |
|
281 | ]), silent=True) | |
278 |
|
282 | |||
279 | #--------------------------------------------------------------------------- |
|
283 | #--------------------------------------------------------------------------- |
General Comments 0
You need to be logged in to leave comments.
Login now