Vanishing Cells in JupyterLab Notebooks

I’ve been running into a problem with Jupyter Lab Notebooks on my Macbook

I will be adding cells (markdown or code) within a notebook (in the middle, top, or bottom) and without any predictability, the new cells or adjacent cells will disappear.

They might pop back as visible when I run the script… or they might not.
I might be able to bring them back if I click on the left margin… or they might not.

I can’t find any settings in my web browser or the jupyter notebook that could be doing this and I am using the default options.

Has anyone else seen this problem?

Much Obliged,
Bill Capehart; South Dakota School of Mines.

Details about the installation:

-- platform:       osx-arm64
-- conda version:  24.7.1
-- python version: 3.12.3.final.0
-- lead channel:   conda-forge (strict)

Jupyter/IPython Packages:

# Name                    Version                   Build  Channel
ipython                   8.26.0             pyh707e725_0    conda-forge
jupyter-lsp               2.2.5              pyhd8ed1ab_0    conda-forge
jupyter_client            8.6.2              pyhd8ed1ab_0    conda-forge
jupyter_core              5.7.2           py312h81bd7bf_0    conda-forge
jupyter_events            0.10.0             pyhd8ed1ab_0    conda-forge
jupyter_server            2.14.2             pyhd8ed1ab_0    conda-forge
jupyter_server_terminals  0.5.3              pyhd8ed1ab_0    conda-forge
jupyterlab                4.2.4              pyhd8ed1ab_0    conda-forge
jupyterlab_pygments       0.3.0              pyhd8ed1ab_1    conda-forge
jupyterlab_server         2.27.3             pyhd8ed1ab_0    conda-forge
nbclient                  0.10.0             pyhd8ed1ab_0    conda-forge
nbconvert-core            7.16.4             pyhd8ed1ab_1    conda-forge
nbformat                  5.10.4             pyhd8ed1ab_0    conda-forge
1 Like

I’ve seen this this week, and when I was seeing it, the main action that made cells disappear was changing the cell type to markdown. They reappeared when I started editing.

I haven’t been able to reproduce it when I look for it, so I can’t be sure of which versions were affected.

3 Likes

Are you all using Safari by any chance?

1 Like

I am, yes.

This post must be at least 20 characters

I wonder if this could be connected to "Add Cell" regression in 4.2.x on Safari · Issue #16373 · jupyterlab/jupyterlab · GitHub. That issue was reported as fixed in Safari Technology Preview version, so maybe testing with that version would be warranted here too?

3 Likes

Yup, I think it’s precisely that issue, and Safari Tech Preview Release 200 (Safari 18.0, WebKit 19620.1.1) also resolves the issue for me. Thanks!

2 Likes

Thank you all for these responses. I was indeed using Safari 17 and the problem is not seen in Chrome, for example. I look forward to the update to which Michał and “Min RK” refer.

Again, many thanks:
Bill