##// END OF EJS Templates
Add an input argument to *all* Display constructors....
Add an input argument to *all* Display constructors. Change the ibrowse and other constructors from __init__(self, input=None, attrs=None) to __init__(self, input=None, *attrs) Move "import astyle" down as far as possible to avoid problems wth circular imports.

File last commit:

r763:3b7d7e50
r953:9f0e1328
Show More
ipy_profile_scipy.py
25 lines | 468 B | text/x-python | PythonLexer
""" 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")
ip.ex("import scipy")
ip.ex("from numpy import *")
ip.ex("from scipy import *")
print "SciPy profile successfully loaded."
except ImportError:
print "Unable to start scipy profile, are scipy and numpy installed?"
main()