Show More
@@ -1,30 +1,30 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 | from __future__ import division |
|
10 | 10 | from sympy import * |
|
11 | x, y, z = symbols('xyz') | |
|
12 | k, m, n = symbols('kmn', integer=True) | |
|
11 | x, y, z = symbols('x,y,z') | |
|
12 | k, m, n = symbols('k,m,n', integer=True) | |
|
13 | 13 | f, g, h = map(Function, 'fgh') |
|
14 | 14 | """ |
|
15 | 15 | |
|
16 | 16 | # You have to make sure that attributes that are containers already |
|
17 | 17 | # exist before using them. Simple assigning a new list will override |
|
18 | 18 | # all previous values. |
|
19 | 19 | |
|
20 | 20 | if hasattr(app, 'exec_lines'): |
|
21 | 21 | app.exec_lines.append(lines) |
|
22 | 22 | else: |
|
23 | 23 | app.exec_lines = [lines] |
|
24 | 24 | |
|
25 | 25 | # Load the sympy_printing extension to enable nice printing of sympy expr's. |
|
26 | 26 | if hasattr(app, 'extensions'): |
|
27 | 27 | app.extensions.append('sympyprinting') |
|
28 | 28 | else: |
|
29 | 29 | app.extensions = ['sympyprinting'] |
|
30 | 30 |
General Comments 0
You need to be logged in to leave comments.
Login now