How to solve the problem of creating notebook failed

this paper refer to the https://stackoverflow.com/questions/54833906/permission-denied-untitled-ipynb-windows-10-aws-workspaces.

after we open the jupyter notebook, a new notebook sometimes appears the following error,

if you have a similar command on your terminal,

[I <some timestamp> NotebookApp] Serving notebooks from local directory: C:\

shows the cause of the problem is jupyter open path is C disk root directory, but this is not allowed. You need to change it to another path, such as the username folder in Disk C for users.

use the jupyter –paths instruction on the terminal to find the path where the config file is stored. After entering the path, open the config file and find the following sentence,

c.NotebookApp.notebook_dir = ''

uncomments it and puts the desired path inside the quotes, such as the username folder in disk C for users.

after changing the terminal to try again, the problem can be solved.

Read More: