You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
comments
c = get_config()
from CrossMatch import *
more comments
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
The text was updated successfully, but these errors were encountered:
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
comments
c = get_config()
from CrossMatch import *
more comments
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
The text was updated successfully, but these errors were encountered: