I am trying to accomplish setting up a profile that will automatically import all the files I reload every time I start working on my project. For example I have a module that from ipython i can import doing this:
from foo import *
I created a new profile for ipython and added the following
commentsc = get_config()
from CrossMatch import *
When I try to run ipython with my profile I get this error.
[TerminalIPythonApp] Exception while loading config file /home/myname/.ipython/profile_MyProf/ipython_config.py
Traceback (most recent call last):
File "/home/myname/opt/epd/lib/python2.7/site-packages/IPython/config/application.py", line 440, in load_config_file
config = loader.load_config()
File "/home/myname/opt/epd/lib/python2.7/site-packages/IPython/config/loader.py", line 268, in load_config
self._read_file_as_dict()
File "/home/myname/opt/epd/lib/python2.7/site-packages/IPython/config/loader.py", line 321, in _read_file_as_dict
py3compat.execfile(conf_filename, namespace)
File "/home/myname/opt/epd/lib/python2.7/site-packages/IPython/utils/py3compat.py", line 175, in execfile
builtin.execfile(filename, *where)
File "/home/myname/.ipython/profile_MyProf/ipython_config.py", line 5, in
from foo import *
ImportError: No module named foo
Thanks
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4