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.