Issue
I want IPython or the Python interpreter to auto-load a module when I start them.
Is it possible?
For example when I start IPython:
$ ipython
...
>>> from __future__ import division
>>> from mymodule import *
In [1]:
Something like SymPy's live shell found in the tutorial pages.
Solution
Check the file ~/.ipython/ipythonrc
- you can list all modules you want to load at the startup.
Answered By - eumiro
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.