I am just getting started trying to learn Python for course assignments. Our teacher has mandated using iPython notebooks, so I have installed Enthought Python AND ipython on my Mac.
The iPython home directory is /users/me/.ipython
I have used the ipython profile create command to create the file
.ipython/profile_default/ipython_config.py
but I don't know how to access this file or what to put in it. My objective is to set the default file path to:
/users/me/documents/classes/analytics/hw1
so that code in my ipython notebook will automatically know where to look for data files.
Please help!
1 Answer 1
You can change the default path to your notebook files. Search in ipython_notebook_config.py for a setting notebook_dir.
The default folder for accessing files is the folder that your notebook is in. If you need to change that, then at the start of the notebook, add a command like this:
%cd /users/me/documents/classes/analytics/hw1
 1 Comment
ipython profile createExplore related questions
See similar questions with these tags.