##// END OF EJS Templates
some sci profile fixes
vivainio -
Show More
@@ -1,7 +1,7 b''
1 1 # -*- coding: utf-8 -*-
2 2 """Release data for the IPython project.
3 3
4 $Id: Release.py 2334 2007-05-10 06:05:24Z fperez $"""
4 $Id: Release.py 2356 2007-05-16 20:55:28Z vivainio $"""
5 5
6 6 #*****************************************************************************
7 7 # Copyright (C) 2001-2006 Fernando Perez <fperez@colorado.edu>
@@ -22,7 +22,7 b" name = 'ipython'"
22 22 # because bdist_rpm does not accept dashes (an RPM) convention, and
23 23 # bdist_deb does not accept underscores (a Debian convention).
24 24
25 revision = '2333M'
25 revision = '2355'
26 26
27 27 version = '0.8.2.svn.r' + revision.rstrip('M')
28 28
@@ -1,18 +1,18 b''
1 import ipy_defaults
2 # import ...
3 # Load Numpy an SciPy by themselves so that 'help' works on them
4
5 1 import IPython.ipapi
6 2 import ipy_defaults
7 3
8 4 def main():
9 5 ip = IPython.ipapi.get()
10 6
11 ip.ex("import scipy")
12 ip.ex("import numpy")
7 try:
8 ip.ex("import scipy")
9 ip.ex("import numpy")
10
11 ip.ex("from scipy import *")
12 ip.ex("from numpy import *")
13 print "SciPy profile successfully loaded."
14 except ImportError:
15 print "Unable to start scipy profile, are scipy and numpy installed?"
13 16
14 ip.ex("from scipy import *")
15 ip.ex("from numpy import *")
16 17
17 if __name__ == "__main__":
18 main() No newline at end of file
18 main() No newline at end of file
General Comments 0
You need to be logged in to leave comments. Login now