##// END OF EJS Templates
Moving extensions to either quarantine or deathrow....
Moving extensions to either quarantine or deathrow. When a module is moved to quarantine, it means that while we intend to keep it, it is currently broken or sufficiently untested that it can't be in the main IPython codebase. To be moved back into the main IPython codebase a module must: 1. Work fully. 2. Have a test suite. 3. Be a proper IPython extension and tie into the official APIs. 3. Have members of the IPython dev team who are willing to maintain it. When a module is moved to deathrow, it means that the code is either broken and not worth repairing, deprecated, replaced by newer functionality, or code that should be developed and maintained by a third party.

File last commit:

r2267:928c921b
r2267:928c921b
Show More
ipy_profile_scipy.py
29 lines | 681 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 """
Brian Granger
ipapi.py => core/ipapi.py and imports updated.
r2027 from IPython.core import ipapi
vivainio
crlf cleanup
r680 import ipy_defaults
def main():
Brian Granger
ipapi.py => core/ipapi.py and imports updated.
r2027 ip = ipapi.get()
vivainio
crlf cleanup
r680
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()