After you have started jupyter notebook, it will load a directory as its workspace. How to change this working directory? In this tutorial, we will tell python beginners how to do.
When we open jupyter notebook by browser, it will load all files in its working directory.
Our default directory is: C:\Users\fly165\workspace. If we want to change the working directory to other directory, we can do by following step.
Change the default working directory of jupyter notebook
We can use command below:
jupyter notebook --notebook-dir=directory_name
Where directory_name is the name of other direcotory.
jupyter notebook --notebook-dir=E:\workspace-nlp\Example
Which means we will change the working directory to: E:\workspace-nlp\Example
Run this command, you will get this result.
Then open jupyter notebook by your browser, you will find the working directory is changed.