Hi Thomas, I think I misdiagnosed my problem. I believe what I am asking for is for --simple-prompt to be added to jupyter console. So that's https://github.com/jupyter/jupyter_console/issues/93
Full explanation: I run some of my python shell processes inside emacs. This works fine for ipython 4.1.1 but in 5.1.0 it results in junk escape sequences at the prompt. (I mistakenly thought these were ANSI color escape codes). The solution is to pass --simple-prompt. However, --simple-prompt is not available in jupyter console yet. I really appreciate the `console` feature because it allows me to use .py files to load code into a kernel being shared with a notebook, thus keeping the notebook focused on graphical output, rather than implementation. So #93 would be great for people who take this approach and can't use the fancy prompt/completion features. Thanks for all the work, Dan On Sun, 2 Oct 2016 at 01:25 Thomas Kluyver <[email protected]> wrote: > You can turn off the colours that come from the kernel (tracebacks, > inspection output) by setting c.InteractiveShell.colors in the kernel > config: > http://ipython.readthedocs.io/en/stable/config/options/kernel.html > > There is not currently a config option in jupyter_console to turn off > prompt colours and syntax highlighting in the frontend, but it would be a > reasonable addition to make this customisable. > > On 2 October 2016 at 02:42, Dan Davison <[email protected]> wrote: > > How can I tell a `jupyter console --existing` shell to not use any > colors? In particular, no color for the prompts. > > I can achieve this in a plain ipython shell with the following in > ipython_config.py > > c.TerminalInteractiveShell.colors = 'NoColor' > > However, I have not managed to do this in `jupyter console` (whether > `--existing` or not, but it is the `--existing` case that I particularly > want a solution for). > > Thanks! > > Dan > > -- > 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/ec248859-013a-40eb-a539-9247197a5000%40googlegroups.com > <https://groups.google.com/d/msgid/jupyter/ec248859-013a-40eb-a539-9247197a5000%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Project Jupyter" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/jupyter/OynBsuwzeQw/unsubscribe. > To unsubscribe from this group and all its topics, 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/CAOvn4qjV9mRWqg-Qb%2BGy2hBstJMjQSqeUxvF3tW0%2Bx%2BzHfunMw%40mail.gmail.com > <https://groups.google.com/d/msgid/jupyter/CAOvn4qjV9mRWqg-Qb%2BGy2hBstJMjQSqeUxvF3tW0%2Bx%2BzHfunMw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CA%2BQSd74escUYSHvp_E7xwimcD-T99xH502dhhT4s%2Bsi9Mste%2Bw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
