We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Brief steps to reproduce (can give further details upon request):
jupyter server
http://127.0.0.1:8888/notebooks/foo.md
The notebook should open as a Jupyter notebook. Instead one is redirected to the text editor /edit/foo.md .
Cause: nbclassic's NotebookApp explicitly sets a hard redirect from /notebooks to /edit for non .ipynb files: https://github.com/jupyter/nbclassic/blob/7752bd880122755c13273e0dad53fb66b8797f9b/nbclassic/notebookapp.py#L275
(context: we recently upgraded our hub, and the user servers now use jupyter_server; it's been a hard day of work to drill down to the cause!)
Not sure what the best fix would be. It presumably would require a change un jupyter_server. I hesitated to post the issue there ...
Any suggestion for a workaround would be welcome. I am considering of monkey patching nbclassic.NotebookApp.#985
The text was updated successfully, but these errors were encountered:
As a local temporary workaround, I replaced ipynb by (ipynb|md) in the nbclassic code:
ipynb
(ipynb|md)
RUN sed -i 's/ipynb/(ipynb|md)/' /opt/conda/lib/python3.9/site-packages/nbclassic/notebookapp.py
Sorry, something went wrong.
Hmm, this redirect does not break only jupytext notebooks, but anything that requires a specific handler. E.g. images! Cross posting to nbclassic.
No branches or pull requests
Brief steps to reproduce (can give further details upon request):
jupyter server
in a directory containing some markown jupytext notebook foo.mdhttp://127.0.0.1:8888/notebooks/foo.md
The notebook should open as a Jupyter notebook. Instead one is redirected to the text editor /edit/foo.md .
Cause: nbclassic's NotebookApp explicitly sets a hard redirect from /notebooks to /edit for non .ipynb files:
https://github.com/jupyter/nbclassic/blob/7752bd880122755c13273e0dad53fb66b8797f9b/nbclassic/notebookapp.py#L275
(context: we recently upgraded our hub, and the user servers now use jupyter_server; it's been a hard day of work to drill down to the cause!)
Not sure what the best fix would be. It presumably would require a change un jupyter_server. I hesitated
to post the issue there ...
Any suggestion for a workaround would be welcome. I am considering of monkey patching nbclassic.NotebookApp.#985
The text was updated successfully, but these errors were encountered: