##// END OF EJS Templates
-iplib.py: added InteractiveShell.getapi(). New magics should be...
-iplib.py: added InteractiveShell.getapi(). New magics should be written doing self.getapi() instead of using the shell directly. -Magic.py: %store now allows doing %store foo > ~/myfoo.txt and %store foo >> ~/myfoo.txt to store variables to files (in clean textual form, not a restorable pickle).

File last commit:

r102:a54f3f3a
r152:ea1ac394
Show More
update_manual.py
28 lines | 526 B | text/x-python | PythonLexer
/ doc / update_manual.py
vivainio
Added instructions on building the documentation...
r102 #!/usr/bin/env ipython
vivainio
Added Jorgen Stenarson's update_manual.py to enable updating manuals in...
r97 """ Must be launched via ipython not normal python
vivainio
Added instructions on building the documentation...
r102 Run by:
ipython update_manual.py
vivainio
Added Jorgen Stenarson's update_manual.py to enable updating manuals in...
r97 """
import sys,IPython,re
fil=open("magic.tex","w")
oldout=sys.stdout
sys.stdout=fil
ipmagic("magic -latex")
sys.stdout=oldout
fil.close()
fil=open("manual_base.lyx")
txt=fil.read()
fil.close()
manualtext=re.sub("__version__",IPython.__version__,txt)
fil=open("manual.lyx","w")
fil.write(manualtext)
fil.close()
vivainio
Added instructions on building the documentation...
r102 print "Manual (magic.tex, manual.lyx) succesfully updated, exiting..."
import os
os.abort()