I just started IPython Notebook, and I tried to use "Save" to save my progress. However, instead of saving the *.ipynb in my current working directory, it is saved in my python/Scripts folder. Would there be a way to set this?
Thanks!
On Linux and other free desktop platforms, these runtime files are stored in $XDG_RUNTIME_DIR/jupyter by default. On other platforms, it's a runtime/ subdirectory of the user's data directory (second row of the table above).
There is a disk icon in the upper left of the Jupyter tool bar. Click the save icon and your notebook edits are saved. It's important to realize that you will only be saving edits you've made to the text sections and to the coding windows. You will NOT be saving the results of running the code.
Click on the See all notebooks link under Recent Notebooks in the right nav bar. 2. Use My Data: Just click the My Data (folder icon) in the left menu bar. Once it opens just click Back, to go up one level to /resources and you can find your Jupyter notebooks there (may need to scroll down a little).
Jupyter Notebook files are saved as you go. They will exist in your directory as a JSON file with the extension . ipynb . You can also export Jupyter Notebooks in other formats, such as HTML.
Yes, you can specify the notebooks location in your profile configuration. Since it's not saving them to the directory where you started the notebook, I assume that you have this option set in your profile. You can find out the the path to the profiles directory by using:
$ ipython locate
Either in your default profile or in the profile you use, edit the ipython_notebook_config.py
file and change the lines:
Note: In case you don't have a profile, or the profile folder does not contain the ipython_notebook_config.py
file, use ipython profile create
.
# The directory to use for notebooks. c.NotebookManager.notebook_dir = u'/path/to/your/notebooks'
and
# The directory to use for notebooks. c.FileNotebookManager.notebook_dir = u'/path/to/your/notebooks'
Or just comment them out if you want the notebooks saved in the current directory.
Update (April 11th 2014): in IPython 2.0 the property name in the config file changed, so it's now:
c.NotebookApp.notebook_dir = u'/path/to/your/notebooks'
If you're using IPython 4.x/Jupyter, run
$ jupyter notebook --generate-config
This will create a file jupyter_notebook_config.py
in ~/.jupyter
. This file already has a line starting with # c.NotebookApp.notebook_dir=u''
.
All you need to do is to uncomment this line and change the value to your desired location, e.g., c.NotebookApp.notebook_dir=u'/home/alice/my_ipython_notebooks'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With