[IPython-User] Tips working around a bug in IPython 13.2

Thomas Kluyver takowl@gmail....
Sun Jun 9 04:38:23 CDT 2013

On 9 June 2013 03:43, Aaron Meurer <asmeurer@gmail.com> wrote:

> What is the best way to work around this? Is there a one-liner I can
> put at the top of the notebooks? Even if there is a longer monkey
> patch, I can put it in a file and run that file at the top of the
> notebook.

There's not any supported way, but at a pinch, I think monkeypatching like
this should work:

def notransform(line): return line
from IPython.core import inputsplitter
inputsplitter.transform_classic_prompt = notransform

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-user/attachments/20130609/a2de87e5/attachment.html 

More information about the IPython-User mailing list