Is there some reason %edit works in iPython and not Jupyter qtconsole?

108 views
Skip to first unread message

mka...@sas.upenn.edu

unread,
Feb 15, 2016, 11:01:08 AM2/15/16
to Project Jupyter
Trying to use %edit magic but it doesn't seem to work in qtconsole.  It opens editor, but doesn't execute on return. I get no error messages to help in diagnosis.  python3.5 and python2.7.  Jupyter 4.1.0. 

Thomas Kluyver

unread,
Feb 15, 2016, 11:51:23 AM2/15/16
to Project Jupyter
On 15 February 2016 at 16:01, <mka...@sas.upenn.edu> wrote:
Trying to use %edit magic but it doesn't seem to work in qtconsole.  It opens editor, but doesn't execute on return. I get no error messages to help in diagnosis.  python3.5 and python2.7.  Jupyter 4.1.0. 

%edit does not try to execute the code when you close it when you invoke it from an IPython kernel running in Jupyter. Beyond the terminal, we don't have a reliable way to wait for an editor to be closed, so in that context, %edit just means 'open this file in an editor'. You'll need to %run it as a separate command.
Reply all
Reply to author
Forward
0 new messages