##// END OF EJS Templates
Remove svn-style $Id marks from docstrings and Release imports....
Remove svn-style $Id marks from docstrings and Release imports. The Id marks show up as junk in the API docs (and they were outdated anyway, since we now use bzr). The Release imports were in there for pulling author/license information for epydoc, but now with sphinx they aren't necessary, and they just are extra startup work.

File last commit:

r1227:28e005fa
r1853:b8f5152c
Show More
ipy_profile_scipy.py
29 lines | 679 B | text/x-python | PythonLexer
Fernando Perez
Add numpy profile and update scipy one to conform to np/sp conventions.
r1227 """ IPython 'scipy' profile, preloads NumPy and SciPy.
vivainio
crlf cleanup
r680
Fernando Perez
Add numpy profile and update scipy one to conform to np/sp conventions.
r1227 This profile loads the math/cmath modules as well as all of numpy and scipy.
vivainio
crlf cleanup
r680
Fernando Perez
Add numpy profile and update scipy one to conform to np/sp conventions.
r1227 It exposes numpy and scipy via the 'np' and 'sp' shorthands as well for
convenience.
vivainio
crlf cleanup
r680 """
import IPython.ipapi
import ipy_defaults
def main():
ip = IPython.ipapi.get()
try:
Fernando Perez
Add numpy profile and update scipy one to conform to np/sp conventions.
r1227 ip.ex("import math,cmath")
vivainio
crlf cleanup
r680 ip.ex("import numpy")
fperez
- new doctest_mode magic to toggle doctest pasting/prompts....
r763 ip.ex("import scipy")
Fernando Perez
Add numpy profile and update scipy one to conform to np/sp conventions.
r1227
ip.ex("import numpy as np")
ip.ex("import scipy as sp")
vivainio
crlf cleanup
r680 ip.ex("from numpy import *")
fperez
- new doctest_mode magic to toggle doctest pasting/prompts....
r763 ip.ex("from scipy import *")
Fernando Perez
Add numpy profile and update scipy one to conform to np/sp conventions.
r1227
vivainio
crlf cleanup
r680 except ImportError:
Fernando Perez
Add numpy profile and update scipy one to conform to np/sp conventions.
r1227 print "Unable to start scipy profile, are numpy and scipy installed?"
vivainio
crlf cleanup
r680
fperez
- new doctest_mode magic to toggle doctest pasting/prompts....
r763 main()