jupytext: Jupytext and Jupyterlab: cell mini-toolbars missing with Jupytext Notebook

I have configured my local jupyterlab so that markdown files are opened as Jupytext notebooks:

... 
	"defaultViewers":
	{
	    "markdown": "Jupytext Notebook",
        }

which works great and is since today used intensively by our 300 students. That smoothed our migration from Jupyter to JupyterLab 😃

However I noticed that the notebook is missing the usual cell mini-toolbars: image

Anyone else noticed this? Is there any difference between “Notebook” and "Jupytext notebook beyond load/save, and maybe some additional menus?

My local setup:

> mamba list | grep jupytext
jupyter                   1.0.0                    pypi_0    pypi
jupyter-console           6.4.4                    pypi_0    pypi
jupyter-lsp               1.5.1                    pypi_0    pypi
jupyter-server-mathjax    0.2.6              pyhc268e32_0    conda-forge
jupyter-server-ydoc       0.1.11                   pypi_0    pypi
jupyter-ydoc              0.1.17                   pypi_0    pypi
jupyter_client            7.3.5              pyhd8ed1ab_0    conda-forge
jupyter_core              4.11.1          py310hff52083_0    conda-forge
jupyter_server            1.18.1             pyhd8ed1ab_0    conda-forge
jupyterlab                4.0.0a27                 pypi_0    pypi
jupyterlab-code-formatter 1.3.8                    pypi_0    pypi
jupyterlab-language-pack-fr-fr 3.4.post4          pyhb354a33_0    conda-forge
jupyterlab-widgets        1.1.1                    pypi_0    pypi
jupyterlab_pygments       0.2.2              pyhd8ed1ab_0    conda-forge
jupyterlab_server         2.15.1             pyhd8ed1ab_0    conda-forge
jupytext                  1.14.0             pyheef035f_0    conda-forge

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Comments: 15 (15 by maintainers)

Most upvoted comments

PS: fun fact: “Jupytext Notebook” is internationalized to “Jupyter Notebook” in French which does not help with the confusion 😃

I fixed it - will be part of the next language packs release.

Of note, the translation is done using the crowdin collaborative web service: https://crowdin.com/project/jupyterlab Feel free to join if you find some mistakes or missing translation.

the need for this dual factory thing is a mystery to me…

I wish the regular notebook factory could be used to open jupytext notebooks, just like the classic notebook was able to do at the very least this is very confusing to users to have to choose between both, no ? it’s hard to see any benefit, and on my end too I see quite a few little drawbacks in any case I have also noticed that in some cases it is possible to open a jupytext file with the regular notebook and in other contexts it’s not; no actual clue why…

– another oddity: open a jupytext notebook in jlab - for simplicity let’s assume this is the only tab; close the session; open it again, the notebook comes back open … but with the Notebook factory double-click on the same file in the file browser, another tab opens on the same content - but with the jupytext notebook factory this time - confusing again… lucky us, the contents of both tabs are kept in sync (c’est déjà ça…)

I kind of got used to it, but yes if that thorn could be removed from our foot it would be just great…

Hi @mwouts,

Bumping and adding one more piece of information: it’s not only the cell toolbar that does not appear in Jupytext notebooks, but in fact any widget provided by an extension (e.g. the buttons for the deck, git, … extensions in the main tool bar). Which is quite annoying for our students.

We studied this a bit further with @brichet. His explanations is that extensions register their widgets based on the Jupyter viewer. In this case for the Notebook viewer, but not for the Jupytext Notebook viewer.

Altogether, given that the Notebook viewer works well for jupytext notebooks with “Open With -> Notebook”, is there a motivation nowadays for having a different notebook viewer type? Do you see why choosing “Notebook” as default viewer in the settings does not work?

Thanks in advance!

Cheers,

PS: fun fact: “Jupytext Notebook” is internationalized to “Jupyter Notebook” in French which does not help with the confusion 😃