Show More
@@ -1,23 +1,23 b'' | |||
|
1 | 1 | c = get_config() |
|
2 | 2 | app = c.InteractiveShellApp |
|
3 | 3 | |
|
4 | 4 | # This can be used at any point in a config file to load a sub config |
|
5 | 5 | # and merge it into the current one. |
|
6 | 6 | load_subconfig('ipython_config.py', profile='default') |
|
7 | 7 | |
|
8 | 8 | lines = """ |
|
9 | 9 | import matplotlib |
|
10 | 10 | %gui qt |
|
11 | matplotlib.use('qtagg') | |
|
11 | matplotlib.use('qt4agg') | |
|
12 | 12 | matplotlib.interactive(True) |
|
13 | 13 | from matplotlib import pyplot as plt |
|
14 | 14 | from matplotlib.pyplot import * |
|
15 | 15 | """ |
|
16 | 16 | |
|
17 | 17 | # You have to make sure that attributes that are containers already |
|
18 | 18 | # exist before using them. Simple assigning a new list will override |
|
19 | 19 | # all previous values. |
|
20 | 20 | if hasattr(app, 'exec_lines'): |
|
21 | 21 | app.exec_lines.append(lines) |
|
22 | 22 | else: |
|
23 | 23 | app.exec_lines = [lines] |
General Comments 0
You need to be logged in to leave comments.
Login now