Reputation: 831
I installed Python 3.7 from Windows Store, it runs perfectly. I successfully installed Jupyter and other packages with pip
from cmd.
The thing is when I run Jupyter (python -m notebook
) it says
and automaticaly opens the browser with an ERR_FILE_NOT_FOUND page. Opening the notebook by copy-pasting the URLs works just as expected, so how can I tell Jupyter to run by default the URL instead of the file?
Upvotes: 0
Views: 2028
Reputation: 21
The solution above works (UBUNDU). You just have to bare in mind a few thinks:
1st: If you use jupyter notebook you need to craete this file jupyter notebook --generate-config
and look for the line c.NotebookApp.use_redirect_file = True
.
If you use jupyter-lab (as I do) you need to use this command jupyter-lab --generate-config
. Also, in jupyter-lab you need to find this line c.ServerApp.use_redirect_file = True
. In both cases this True
needs to become False
.
PS. I wanted to add it as a comment but I was not able to do so due to reputation or something.
2nd: It is given in the previous answer but its easy to be missed: you need to uncomment the line (remove the "#" at the start of the line)
Upvotes: 1
Reputation: 76
At my end, the file does not open either due to security settings of Chromium (ERR_ACCESS_DENIED).
There's a config parameter which controls how the browser gets access to jupyter: NotebookApp.use_redirect_fileBool
(cf. jupyter docs).
In order to change this, create a config by jupyter notebook --generate-config
and edit the config file: uncomment and replace the value of line #c.NotebookApp.use_redirect_file = True
by c.NotebookApp.use_redirect_file = False
. On next start of jupyter, the browser is started using the http URL instead of the file.
HTH
Upvotes: 4