Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to save a file into a directory in Jupyter notebook?

I invoke "jupyter notebook" under:

 [abigail@localhost anaconda3]$ jupyter notebook

By default, it saves to the directory of anaconda3/ with an extension of "ipynb" when I click "File" => "Save".

How to save it to a directory under anaconda3/, instead of the default location? There is not a "save as" command in notebook?

like image 511
user697911 Avatar asked Dec 12 '16 21:12

user697911


People also ask

How do I move files into a folder in Jupyter Notebook?

After the notebook is shutdown, you can click in the checkbox to left of the filename and select Move . You will be asked to provide the path to directory to which to move the file. To use the Jupyter Notebook dashboard menu to move Jupyter Notebook files (.

How do I change the save location in Jupyter Notebook?

So let's get going and get this done. Go to the folder location C:\Users\YOUR_USERNAME\. jupyter and open the file named, jupyter_notebook_config.py in any text editor. Uncomment the key string by deleting the # sign and in single quotes type the location of your custom startup folder and save the changes.

How do I create a directory in Jupyter?

To create a new directory using the Jupyter Notebook dashboard, you can click on the drop-down menu labeled New , and then select Folder . You can create new directories in the Jupyter dashboard by clicking on New and then selecting Folder from the drop-down menu. Note that new directories are created as Untitled.


1 Answers

You can save a notebook to a location of your choice by using the "File" -> "Download as" -> "Notebook (.ipynb)" option from the menu.

Alternatively you can start your notebook server from a different directory and it will save all notebooks to that directory.

A third option is to navigate to the directory you want the notebook to be saved to in the tree view "http://127.0.0.1:8888/tree" prior to creating the notebook.

like image 79
mbecker Avatar answered Oct 25 '22 02:10

mbecker