Show More
The requested changes are too big and content was truncated. Show full diff
@@ -1,18 +1,25 b'' | |||||
|
1 | """ IPython 'sci' profile | |||
|
2 | ||||
|
3 | Replaces the old scipy profile. | |||
|
4 | ||||
|
5 | """ | |||
|
6 | ||||
|
7 | ||||
1 | import IPython.ipapi |
|
8 | import IPython.ipapi | |
2 | import ipy_defaults |
|
9 | import ipy_defaults | |
3 |
|
10 | |||
4 | def main(): |
|
11 | def main(): | |
5 | ip = IPython.ipapi.get() |
|
12 | ip = IPython.ipapi.get() | |
6 |
|
13 | |||
7 | try: |
|
14 | try: | |
8 | ip.ex("import scipy") |
|
15 | ip.ex("import scipy") | |
9 | ip.ex("import numpy") |
|
16 | ip.ex("import numpy") | |
10 |
|
17 | |||
11 | ip.ex("from scipy import *") |
|
18 | ip.ex("from scipy import *") | |
12 | ip.ex("from numpy import *") |
|
19 | ip.ex("from numpy import *") | |
13 | print "SciPy profile successfully loaded." |
|
20 | print "SciPy profile successfully loaded." | |
14 | except ImportError: |
|
21 | except ImportError: | |
15 | print "Unable to start scipy profile, are scipy and numpy installed?" |
|
22 | print "Unable to start scipy profile, are scipy and numpy installed?" | |
16 |
|
23 | |||
17 |
|
24 | |||
18 | main() No newline at end of file |
|
25 | main() |
1 | NO CONTENT: modified file |
|
NO CONTENT: modified file | ||
The requested commit or file is too big and content was truncated. Show full diff |
General Comments 0
You need to be logged in to leave comments.
Login now