On 15 July 2016 at 06:33, <[email protected]> wrote: > From the docs, IPython 5 has the option "--simple-prompt" to maintain > compatibility with emacs. A quick test running 'ipython --simple-prompt' > works fine from a terminal. > > The emacs package ob-ipython.el uses jupyter messaging to run python code > blocks from emacs. With IPython 4.x, emacs would fire up an IPython kernel > using "ipython --existing", which, of course, is now deprecated. > > I believe the command should now be "jupyter console --existing", but I > can't seem to pass --simple-prompt through jupyter to ipython (ZMQ throws > an Unrecognized flag error). Is this the right approach? Alternatively, is > there a magic like %colors to get to the 'simple prompt'? >
If you're actually sending code to a running IPython kernel over zmq, without going through a terminal interface, you shouldn't need to worry about --simple-prompt. The changes to the terminal interface don't change how you talk to a kernel. However, if you're sending stuff through a terminal interface such as Jupyter console, it may be an issue. Try with just 'jupyter console' first, and see if it works. If not, we may need to add the --simple-prompt flag to that as well: https://github.com/jupyter/jupyter_console/issues/93 --simple-prompt was added primarily for Emacs 'inferior shell', which sort-of-but-not-really uses a terminal interface. Thomas -- You received this message because you are subscribed to the Google Groups "Project Jupyter" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/CAOvn4qjDhhTcLbmzS6socsi2y%3DMs9W5ve6z1Y932SF5%3DB83%3DbA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
