##// END OF EJS Templates
remove parallelmagic ext from cluster default config
MinRK -
Show More
@@ -1,25 +1,19 b''
1 c = get_config()
1 c = get_config()
2 app = c.InteractiveShellApp
2 app = c.InteractiveShellApp
3
3
4 # This can be used at any point in a config file to load a sub config
4 # This can be used at any point in a config file to load a sub config
5 # and merge it into the current one.
5 # and merge it into the current one.
6 load_subconfig('ipython_config.py', profile='default')
6 load_subconfig('ipython_config.py', profile='default')
7
7
8 lines = """
8 lines = """
9 from IPython.parallel import *
9 from IPython.parallel import *
10 """
10 """
11
11
12 # You have to make sure that attributes that are containers already
12 # You have to make sure that attributes that are containers already
13 # exist before using them. Simple assigning a new list will override
13 # exist before using them. Simple assigning a new list will override
14 # all previous values.
14 # all previous values.
15 if hasattr(app, 'exec_lines'):
15 if hasattr(app, 'exec_lines'):
16 app.exec_lines.append(lines)
16 app.exec_lines.append(lines)
17 else:
17 else:
18 app.exec_lines = [lines]
18 app.exec_lines = [lines]
19
19
20 # Load the parallelmagic extension to enable %result, %px, %autopx magics.
21 if hasattr(app, 'extensions'):
22 app.extensions.append('parallelmagic')
23 else:
24 app.extensions = ['parallelmagic']
25
General Comments 0
You need to be logged in to leave comments. Login now