In Jupyter notebook, after I click File->New Notebook, the file is stored to the root home directory of my anaconda installation. Why isn't there a "save as" option to allow save the new notebook to a directory which I created myself? I have to move the file in my terminal. I am just curious about. Is that possible? That seems a common use case.
The notebook you are creating with the "new" button, saves it under the directory you are currently under when pressing that button.
There is also the "save as" option in both jupyter and jupyterlab, as soon as it is already created.
In jupyter:
In Jupyterlab:
Related
So I'm just beginning my programming/coding journey. I've downloaded Anaconda and made a shortcut for Jupyter Notebook on my desktop. I tried using my first file the other day, and I'm not sure where it's being saved to. Also, I basically don't want Jupyter to save any Notebook I do once I close the Notebook, unless I specifically save it myself - I just use it for 'working out' if you like.
Here is the image showing what I mean
Like, where is that untitled.ipynb file being saved? And, how can I adjust my settings in Jupyter Notebook such that these files aren't saved and are discarded automatically so I can use them as I describe just for 'working out'?
By default the ipynb files are stored to your user profile:
C:\Users\yourlogin
How to disable autosave has already been described here:
Turn Off Autosave in IPython Notebook
I don't recommend doing that.
Whenever I start a Jupyter Notebook, it creates and automatically opens an HTML file. How do I stop this? HTML files are opened by default on my system in my text editor, not my web browser, and my terminal allows me to click links to open them, and the link to the notebook is in the output of the command, so I don't need the link in the HTML file.
Should have thought of it first, but the help file answered the question (jupyter notebook --help):
jupyter notebook --no-browser
I'm trying to change the default working directory for Jupyter notebooks (anaconda installation). I've looked up many different answers, most of which focus on changing the jupyter_notebook_config.py file, but none of those work.
Some of the things i've tried:
This medium article
This github issue (bottom reply)
This
This too
No matter what I try, whenever I start jupyter notebook the directory I see is C:\Users\me.
I admit part of the problem is that I'm not great with command line things which makes some of the answers difficult to understand.
If you run the Jupyter Notebook from the Windows Start Menu then you have to change the command running Jupyter Notebook in the shortcut. Right click on the Start Menu on the shortcut, open file location, right click on the Jupyter Notebook shortcut, select Properties, and in the Terget Textbox, change the "%USERPROFILE%" part in what you wand or if you have changed the Jupyter config file, delete this part.
In classic Jupyter Notebook File -> Download as has a Notebook (.ipynb) option to download the original notebook source.
JupyterLab only seems to have File -> Export Notebook As ... only offers non Notebook options. Is there a simple way to download the actual notebook from JupyterLab
In Jupyter Lab, on the left side, there is tab "Files", which will show the directory structure. In that, right click on the Jupyter Notebook and there would be a option to download it.
I'm working with Jupyter Notebook version 4.1.0 and can't seem to manually select the save path.
How does one manually specify where a session is saved?
You can launch jupyter notebook from the command line from inside the desired folder path. This will set the current folder as the start of the directory tree in Jupyter.
If we already have a session running, we can select the option IPython Notebook (.ipynb), from the file menu, under the Download as option. After saving the Notebook to a desired path, we can open it using the method described above.