##// 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

File last commit:

r2267:928c921b
r2426:61e33e8e
Show More
ipy_system_conf.py
24 lines | 535 B | text/x-python | PythonLexer
vivainio
config changes
r130 """ System wide configuration file for IPython.
This will be imported by ipython for all users.
After this ipy_user_conf.py is imported, user specific configuration
should reside there.
"""
Brian Granger
ipapi.py => core/ipapi.py and imports updated.
r2027 from IPython.core import ipapi
ip = ipapi.get()
vivainio
config changes
r130
# add system wide configuration information, import extensions etc. here.
# nothing here is essential
import sys
vivainio
a = !ls, a = %alias now work (captures output or gets ret val for aliases)...
r151 import ext_rescapture # var = !ls and var = %magic
vivainio
Fix %upgrade, and suggest using it.
r226 import pspersistence # %store magic
vivainio
%clear magic added. fix CachedOutput.flush to flush data properly
r242 import clearcmd # %clear
vivainio
Fix %upgrade, and suggest using it.
r226
vivainio
create app_completes, move non-core completers there, install stock completers as default, ipy_signals in sh profile
r681 import ipy_stock_completers
vivainio
added %rep, factored %hist to maghistory, added examples/extension.py template for new magics
r689
Brian Granger
history.py => core/history.py and imports updated.py
r2025 ip.load('IPython.core.history')