Show More
@@ -15,7 +15,7 b' import IPython.ipapi' | |||||
15 | def test_session(shellclass): |
|
15 | def test_session(shellclass): | |
16 | print "*****************\nLaunch shell for",shellclass |
|
16 | print "*****************\nLaunch shell for",shellclass | |
17 | my_ns = dict(a=10) |
|
17 | my_ns = dict(a=10) | |
18 | ses = IPython.ipapi.make_session(my_ns) |
|
18 | ses = IPython.ipapi.make_session(my_ns, shellclass=shellclass) | |
19 |
|
19 | |||
20 | # Now get the ipapi instance, to be stored somewhere in your program for manipulation of the running |
|
20 | # Now get the ipapi instance, to be stored somewhere in your program for manipulation of the running | |
21 | # IPython session. See http://ipython.scipy.org/moin/IpythonExtensionApi |
|
21 | # IPython session. See http://ipython.scipy.org/moin/IpythonExtensionApi | |
@@ -38,5 +38,11 b' def test_session(shellclass):' | |||||
38 |
|
38 | |||
39 | import IPython.Shell |
|
39 | import IPython.Shell | |
40 |
|
40 | |||
41 | test_session(shellclass = None) |
|
41 | def do_test(arg_line): | |
42 |
test_session(IPython.Shell._select_shell( |
|
42 | test_session(IPython.Shell._select_shell(arg_line.split())) | |
|
43 | ||||
|
44 | do_test('') | |||
|
45 | do_test('ipython -gthread') | |||
|
46 | do_test('ipython -q4thread') | |||
|
47 | do_test('ipython -pylab') | |||
|
48 | do_test('ipython -pylab -gthread') No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now