On Friday, July 15, 2016 at 6:36:27 AM UTC-5, takowl wrote:
>
> On 15 July 2016 at 06:33, <[email protected] <javascript:>> 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 
> <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fjupyter%2Fjupyter_console%2Fissues%2F93&sa=D&sntz=1&usg=AFQjCNG5lyRTcxzXsiz9hkKhJUovvMT4KA>
>
> --simple-prompt was added primarily for Emacs 'inferior shell', which 
> sort-of-but-not-really uses a terminal interface.
>
>
Looking at comment https://github.com/ipython/ipython/issues/9758, issue 93 
could fix the problem I'm describing.  Thanks for considering it.

Steve

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/f896e5c4-913f-447b-b8af-6aa0cd410d76%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to