Skip to content

cannot open a jupytext notebook in nb7 #6914

@parmentelat

Description

@parmentelat

Describe the bug

The jupytext extension does not work as expected in nb7

To Reproduce
Steps to reproduce the behavior:

  1. install jlab4 as released in pip
  2. install nb7 with pip install -U --pre notebook
  3. install jupytext with pip install jupytext
  4. install the jupytext labextension with
    pip install git+https://github.com/mwouts/jupyterlab-jupytext.git@jupyterlab4
  5. create a simple jupytext notebook named for instance foo-nb.md
  6. under jlab, check that you can open the notebook: right click → "Jupytext Notebook"
  7. perform the same operation from the regular notebook tree browser: the "Jupytext Notebook" option is present but does not open the file as a notebook, it shows a text editor instead

Expected behavior

  1. we should be able to open a jupytext notebook from the regular notebook file browser;
  2. (also when opening a URL like localhost:8888/notebooks/path/file.md we need this to open a notebook and not a text editor, but for that to work the former behaviour 1. must first work)

Screenshots

image

Desktop (please complete the following information):

  • OS: [e.g. iOS] MacOS & linux
  • Browser [e.g. chrome, safari] - chrome
  • Version [e.g. 22]

Additional context

Please see also https://discourse.jupyter.org/t/generic-question-about-jlab4-and-nb7/19846

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