##// END OF EJS Templates
fix small bug seen with f2py-generated modules
fix small bug seen with f2py-generated modules

File last commit:

r763:3b7d7e50
r876:0d77e157
Show More
ipy_profile_scipy.py
25 lines | 468 B | text/x-python | PythonLexer
vivainio
crlf cleanup
r680 """ IPython 'sci' profile
Replaces the old scipy profile.
"""
import IPython.ipapi
import ipy_defaults
def main():
ip = IPython.ipapi.get()
try:
ip.ex("import numpy")
fperez
- new doctest_mode magic to toggle doctest pasting/prompts....
r763 ip.ex("import scipy")
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 *")
vivainio
crlf cleanup
r680 print "SciPy profile successfully loaded."
except ImportError:
print "Unable to start scipy profile, are scipy and numpy installed?"
fperez
- new doctest_mode magic to toggle doctest pasting/prompts....
r763 main()