Show More
@@ -0,0 +1,7 b'' | |||
|
1 | import IPython.ipapi | |
|
2 | ip = IPython.ipapi.get() | |
|
3 | ||
|
4 | def main(): | |
|
5 | ip.magic('rehashdir c:/opt/kdiff3') | |
|
6 | ||
|
7 | main() |
@@ -1,31 +1,32 b'' | |||
|
1 | 1 | """ User configuration file for IPython |
|
2 | 2 | |
|
3 | 3 | This is a more flexible and safe way to configure ipython than *rc files |
|
4 | 4 | (ipythonrc, ipythonrc-pysh etc.) |
|
5 | 5 | |
|
6 | 6 | This file is always imported on ipython startup. You can import the |
|
7 | 7 | ipython extensions you need here (see IPython/Extensions directory). |
|
8 | 8 | |
|
9 | 9 | Feel free to edit this file to customize your ipython experience. |
|
10 | 10 | |
|
11 | 11 | Note that as such this file does nothing, for backwards compatibility. |
|
12 | 12 | Consult e.g. file 'ipy_profile_sh.py' for an example of the things |
|
13 | 13 | you can do here. |
|
14 | 14 | |
|
15 | 15 | """ |
|
16 | 16 | |
|
17 | 17 | # Most of your config files and extensions will probably start with this import |
|
18 | 18 | |
|
19 | 19 | import IPython.ipapi |
|
20 | 20 | ip = IPython.ipapi.get() |
|
21 | 21 | |
|
22 | 22 | # You probably want to uncomment this if you did %upgrade -nolegacy |
|
23 | 23 | # import ipy_sane_defaults |
|
24 | 24 | |
|
25 | 25 | def main(): |
|
26 | 26 | o = ip.options() |
|
27 | import ipy_apps | |
|
27 | 28 | # An example on how to set options |
|
28 | 29 | #o.autocall = 1 |
|
29 | 30 | |
|
30 | 31 | main() |
|
31 | No newline at end of file | |
|
32 |
General Comments 0
You need to be logged in to leave comments.
Login now