Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 not found #45

Open
bfkeats opened this issue Sep 7, 2017 · 9 comments
Open

404 not found #45

bfkeats opened this issue Sep 7, 2017 · 9 comments

Comments

@bfkeats
Copy link

bfkeats commented Sep 7, 2017

I've installed nbopen, and when I double-click on a notebook, I get the following error:

404 : Not Found
You are requesting a page that does not exist!

The URL shows the path to the notebook

http://localhost:8888/notebooks/path%5Cto%5Cnotebook%5Cactual_notebook.ipynb

If I remove everything but http://localhost:8888 from the URL, I get a file tree, and I can click on the notebook to start it.

I'm running windows 7 enterprise, service pack 1,
Python 3.6.1 :: Anaconda custom (64-bit)

Any ideas what might be causing this? Thanks in advance.

@takluyver
Copy link
Owner

Yes, I think it's got broken with Windows paths at some point - the backslashes need to be translated into forward slashes for the URL.

@takluyver
Copy link
Owner

I've just released 0.4.3 - can you update and try it again?

@bfkeats
Copy link
Author

bfkeats commented Sep 8, 2017

Closer. I'm still getting the same 404 error. The URL is:

http://localhost:8888/notebooks/path/to/notebook/actual_notebook.ipynb

The server seems to be residing in the local directory of the notebook however. If I delete all the path information as follows, the notebook opens correctly:

http://localhost:8888/notebooks/actual_notebook.ipynb

@takluyver
Copy link
Owner

Is this with a server already running, or with nbopen needing to start a server? Can you also have a look at the output of:

from notebook.notebookapp import list_running_servers
print(list(list_running_servers()))

@bfkeats
Copy link
Author

bfkeats commented Sep 11, 2017

Both with a server running and without.

[{'base_url': '/', 'hostname': 'localhost', 'notebook_dir': 'C:\\dDrive\\data', 'password': False, 'pid': 10400, 'port': 8888, 'secure': False, 'token': 'e4aa02081bd7c7a3b83a0ed9b589ca3005a53dc4dd467e55', 'url': 'http://localhost:8888/'}]

@takluyver
Copy link
Owner

Jupyter is telling us that the notebook server is running in C:\dDrive\data. Is that where the notebook is located? Or do you still need path\to\notebook after that?

@bfkeats
Copy link
Author

bfkeats commented Sep 11, 2017

Strange. When I go to http://localhost:8888/tree I don't see the contents of C:\dDrive\data. I see the contents of C:\dDrive\data\path\to\notebook

@takluyver
Copy link
Owner

That's odd. If that happens with a server not started by nbopen, then I think it's a Jupyter bug - it appears to be incorrectly recording where the server is running. I don't know how that happens, though.

@bfkeats
Copy link
Author

bfkeats commented Sep 11, 2017

Weird. I'll mess around and let you know if I figure anything out. Thanks for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants