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 | 8 | import IPython.ipapi |
|
2 | 9 | import ipy_defaults |
|
3 | 10 | |
|
4 | 11 | def main(): |
|
5 | 12 | ip = IPython.ipapi.get() |
|
6 | 13 | |
|
7 | 14 | try: |
|
8 | 15 | ip.ex("import scipy") |
|
9 | 16 | ip.ex("import numpy") |
|
10 | 17 | |
|
11 | 18 | ip.ex("from scipy import *") |
|
12 | 19 | ip.ex("from numpy import *") |
|
13 | 20 | print "SciPy profile successfully loaded." |
|
14 | 21 | except ImportError: |
|
15 | 22 | print "Unable to start scipy profile, are scipy and numpy installed?" |
|
16 | 23 | |
|
17 | 24 | |
|
18 | 25 | main() No newline at end of file |
|
1 | 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