Skip to content

opening jupytext notebook with a base_url is failing #6942

@parmentelat

Description

@parmentelat

Description

possibly related to #6914

getting a 404 error when using the Open withNotebook menu on a jupytext notebook

nb7-text-base-url

this capture was made when running

jupyter lab --NotebookApp.base_url=/jlab4-nb7-text/

the 2 first first attempts work fine:

  • on a ipynb, Open withNotebook
  • on a jupytext, Open withJupytext Notebook

the video may not be super clear but in both these cases the new tab's URL contains the base_url

BUT

  • on a jupytext, Open withNotebook ends up on a 404 because the base_url thingy was not inserted in the URL

Reproduce

see above; this is with

pip freeze | egrep 'jupyte|notebook'
jupyter-events==0.6.3
jupyter-lsp==2.2.0
jupyter_client==8.2.0
jupyter_core==5.3.1
jupyter_server==2.6.0
jupyter_server_terminals==0.4.4
jupyterlab==4.0.2
jupyterlab-pygments==0.2.2
jupyterlab-widgets==3.0.7
jupyterlab_jupytext @ git+https://github.com/mwouts/jupyterlab-jupytext.git@d451f5c6fddc958bd3b7082720a7627aa4681fbd
jupyterlab_server==2.23.0
jupytext==1.14.6
notebook==7.0.0rc1
notebook_shim==0.2.3

Context

Command Line Output
[W 2023-06-22 12:55:39.037 ServerApp] 404 GET /edit/tests/sample-jupytext.md?factory=Notebook (cddb81bae87041cc81171cb9a9812c73@::1) 1.64ms referer=http://localhost:8891/jlab4-nb7-text/tree/tests
Browser Output

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions