You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/home/jose/devel/pop_lab/.venv/lib/python3.12/site-packages/tornado/web.py", line 1790, in _execute
result = await result
^^^^^^^^^^^^
File "/home/jose/devel/pop_lab/.venv/lib/python3.12/site-packages/tornado/web.py", line 2688, in get
self.absolute_path = self.validate_absolute_path(self.root, absolute_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jose/devel/pop_lab/.venv/lib/python3.12/site-packages/tornado/web.py", line 2902, in validate_absolute_path
raise HTTPError(403, "%s is not a file", self.path)
tornado.web.HTTPError: HTTP 403: Forbidden (tree is not a file)
Reproduce
Create the static website with:
$ jupyter lite build --contents src/pop_lab --output-dir output_site
Traceback (most recent call last):
File "/home/jose/devel/pop_lab/.venv/lib/python3.12/site-packages/tornado/web.py", line 1790, in _execute
result = await result
^^^^^^^^^^^^
File "/home/jose/devel/pop_lab/.venv/lib/python3.12/site-packages/tornado/web.py", line 2688, in get
self.absolute_path = self.validate_absolute_path(self.root, absolute_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jose/devel/pop_lab/.venv/lib/python3.12/site-packages/tornado/web.py", line 2902, in validate_absolute_path
raise HTTPError(403, "%s is not a file", self.path)
tornado.web.HTTPError: HTTP 403: Forbidden (notebooks is not a file)
The server response is similar:
403 GET /notebooks?path=one_locus_two_alleles_simulation.ipynb (127.0.0.1): notebooks is not a file
403 GET /notebooks?path=one_locus_two_alleles_simulation.ipynb (127.0.0.1) 1.04ms
I have tried in in Firefox 124.0.1 and Chrome 123.0.6312.86.
I hope this report could be useful, If I could help with anything else, I'll be delighted. I'm an experienced Python developer, but, unfortunately I have no Javascript experience.
Best,
Jose Blanca
The text was updated successfully, but these errors were encountered:
It might be something to do with the jupyter lite serve command. Would you be able to check if running python -m http.server --directory output_site might help?
Also linking to #683 which seems to be similar, but was opened when Notebook was still RetroLab.
Description
I have installed the notebook extension, but when I click Help -> "Launch Jupyter Notebook File Browser" what I get is:
URL: http://127.0.0.1:8000/tree
Web response:
Reproduce
$ jupyter lite build --contents src/pop_lab --output-dir output_site
$ jupyter lite serve --output-dir output_site
However, the url: http://127.0.0.1:8000/tree/ works just fine. So, the last slash is relevant here.
Also, and I don't know if this is part of the same bug or not. The url for a notebook also fails. For example: http://127.0.0.1:8000/notebooks?path=one_locus_two_alleles_simulation.ipynb
The server response is similar:
Context
I have tried in in Firefox 124.0.1 and Chrome 123.0.6312.86.
I hope this report could be useful, If I could help with anything else, I'll be delighted. I'm an experienced Python developer, but, unfortunately I have no Javascript experience.
Best,
Jose Blanca
The text was updated successfully, but these errors were encountered: