jupyter / help

:sparkles: Need some help or have some questions? Please visit our Discourse page.
https://discourse.jupyter.org
291 stars 97 forks source link

getting 404 error when trying to run "jupyter notebook" from other drive #196

Open joniserra opened 7 years ago

joniserra commented 7 years ago

Hi, I am working on Windows and it works fine when I run it in C (different locations). However, when I try in D (a partition) I have 404 error. I'm using anaconda 2.7.13 Thanks

takluyver commented 7 years ago

Are there any error message in the command prompt you're launching it from? Or are you launching it some other way?

joniserra commented 7 years ago

In the webpage oppened in the browser the folloging message appears: 404 : Not Found You are requesting a page that does not exist!

And in the command prompt this is what it says:

[I 10:53:59.421 NotebookApp] Serving notebooks from local directory: D:\ [I 10:53:59.421 NotebookApp] 0 active kernels [I 10:53:59.421 NotebookApp] The Jupyter Notebook is running at: http://localhost:8888/?token=499356ae8caf92a312211ac79a113cad87e75e814e39b92c [I 10:53:59.421 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). [C 10:53:59.424 NotebookApp]

Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
    http://localhost:8888/?token=499356ae8caf92a312211ac79a113cad87e75e814e39b92c

[I 10:53:59.582 NotebookApp] Accepting one-time-token-authenticated connection from ::1 [I 10:53:59.605 NotebookApp] Refusing to serve hidden directory, via 404 Error [W 10:53:59.887 NotebookApp] 404 GET /tree?token=ca6e409530474f78885d9dd900c5871b5082196c5e31bc68 (::1) 304.00ms referer=None

takluyver commented 7 years ago

Ah, this rings a bell. If you make a folder like D:\foo and try to run it from there, does it also fail? Or is it only using the root of the drive?

What version of notebook are you using? This sounds similar to this bug: https://github.com/jupyter/notebook/issues/984, which was supposed to have been fixed some time ago.

Athul8raj commented 6 years ago

i got the same error as above( Page you requested does not exist).So i tried command --"conda install -c conda-forge jupyter" and "conda install notebook" and then ran jupyter notebook. and it worked!!!

AbhayKasturia commented 6 years ago

I was facing the same issue, where my anaconda installation is in C: drive and I was trying to launch jupyter form D: Fixed it by running jupyter from a folder in D: rather than the root drive!

rhardja commented 6 years ago

Wanted to second @Athul8raj 's solution

I did these steps:

  1. "conda install -c conda-forge jupyter" and then "conda install notebook"
  2. Change the default directory inside C:\Users\USERNAME.jupyter\jupyter_notebook_config.py. Find and edit this line to c.NotebookApp.notebook_dir = 'D:/Your/Path'