Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Data Science by (18.4k points)
I started working on jupyter recently and when I save my file it is getting saved in .ipynb file in the current directory but I wanted the file to be saved in the python_Script folder. How can I achieve it?. Can anyone help me?

1 Answer

0 votes
by (36.8k points)

You can save the file in the specific folder of a particular directory. You can use the command below to find the path of the profile directory

$ ipython locate

You can either use the default directory or you can change the path by using the path below:

Note: In case if you don't have any profile or the profile folder doesn't 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'

Then

# The directory to use for notebooks.

c.FileNotebookManager.notebook_dir = u'/path/to/your/notebooks'

Or you can just comment them off. If you want the default directory 

 Learn Python for Data Science Course to improve your technical knowledge.

Browse Categories

...