##// END OF EJS Templates
Changing input filtering to require whitespace separation between the initial command (alias, magic, autocall) and rest of line. ...
Changing input filtering to require whitespace separation between the initial command (alias, magic, autocall) and rest of line. This fixes some subtle but nasty bugs with lines that start with, e.g. r'a_string'. They had been getting parsed as the magic %r followed by the string literal 'a_string' -- now that's been fixed.

File last commit:

r680:5a2d2c1b
r707:8de6d199
Show More
ipy_profile_scipy.py
24 lines | 467 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 scipy")
ip.ex("import numpy")
ip.ex("from scipy import *")
ip.ex("from numpy import *")
print "SciPy profile successfully loaded."
except ImportError:
print "Unable to start scipy profile, are scipy and numpy installed?"
main()