##// END OF EJS Templates
Add transformers to understand code pasted with >>> or IPython prompts....
Add transformers to understand code pasted with >>> or IPython prompts. Now the following all work out of the box: In [8]: In [6]: for i in range(5): ...: ...: print i, ...: ...: ...: 0 1 2 3 4 In [10]: >>> width = 20 In [11]: >>> height = 5*9 In [12]: >>> width * height Out[12]: 900 And the history is still clean: In [13]: %hist -n [snipped] for i in range(5): print i, get_ipython().magic("hist -n") width = 20 height = 5*9 width * height This will be extremely useful when copy/pasting from interactive tutorials, doctests and examples. Also fixes %doctest_mode: https://bugs.launchpad.net/ipython/+bug/505404
Fernando Perez -
r2426:61e33e8e
Show More
Name Size Modified Last Commit Author
/ IPython / deathrow
tests
Gnuplot2.py Loading ...
GnuplotInteractive.py Loading ...
GnuplotRuntime.py Loading ...
Itpl.py Loading ...
PhysicalQInput.py Loading ...
PhysicalQInteractive.py Loading ...
__init__.py Loading ...
astyle.py Loading ...
dtutils.py Loading ...
ibrowse.py Loading ...
igrid.py Loading ...
igrid_help.css Loading ...
igrid_help.html Loading ...
ipipe.py Loading ...
ipy_constants.py Loading ...
ipy_defaults.py Loading ...
ipy_kitcfg.py Loading ...
ipy_legacy.py Loading ...
ipy_p4.py Loading ...
ipy_profile_none.py Loading ...
ipy_profile_numpy.py Loading ...
ipy_profile_scipy.py Loading ...
ipy_profile_sh.py Loading ...
ipy_profile_zope.py Loading ...
ipy_traits_completer.py Loading ...
ipy_vimserver.py Loading ...
numeric_formats.py Loading ...
numutils.py Loading ...
scitedirector.py Loading ...
twshell.py Loading ...