Skip to content

Incompatible with Jupytext plugin (notebook corruption) #214

@goerz

Description

@goerz

Description

The jupyter-collaboration plugin appears to be incompatible with the jupytext plugin. It is unclear which plugin's "fault" this is.

See mwouts/jupytext#1124

Reproduce

As described in mwouts/jupytext#1124 (comment):

  1. Create a test notebook with the content print('test')
  2. Pair this with jupytext to a corresponding script file (e.g., light, OP used percent)
  3. Close and shutdown the kernel.
  4. Open the .py file in Jupyter Lab and execute the first cell.
  5. Close and shutdown the kernel.
  6. Open the original .ipynb in Jupyter Lab.

Context

  • Operating System and version: Linux Ubuntu 20.04
  • Browser and version: Safari/Chrome/Arq (not browser dependent)
  • Jupyter was installed via Miniforge 23.1-1: conda install jupyterlab notebook jupyterlab_execute_time nbdime jupytext ipywidgets ipyparallel jupyter-collaboration
  • JupyterLab version: 4.0.8
  • Jupytext version: 1.15.2
  • Jupyter-collaboration version: 1.2.0
Troubleshoot Output
$PATH:
        /home/goerz/.pyenv/versions/miniforge3-23.3.1-1/bin
        /home/goerz/.pyenv/libexec
        /home/goerz/.pyenv/plugins/python-build/bin
        /home/goerz/.pyenv/plugins/pyenv-virtualenv/bin
        /home/goerz/bin
        /home/goerz/.pyenv/shims
        /home/goerz/.julia/juliaup//bin
        /home/goerz/.pyenv/bin
        /home/goerz/.local/bin
        /home/goerz/bin
        /home/goerz/.julia/juliaup//bin
        /home/goerz/.pyenv/bin
        /home/goerz/.local/bin
        /usr/local/sbin
        /usr/local/bin
        /usr/sbin
        /usr/bin
        /sbin
        /bin
        /usr/games
        /usr/local/games
        /snap/bin

sys.path:
/home/goerz/.pyenv/versions/miniforge3-23.3.1-1/bin
/home/goerz/.pyenv/versions/miniforge3-23.3.1-1/lib/python310.zip
/home/goerz/.pyenv/versions/miniforge3-23.3.1-1/lib/python3.10
/home/goerz/.pyenv/versions/miniforge3-23.3.1-1/lib/python3.10/lib-dynload
/home/goerz/.pyenv/versions/miniforge3-23.3.1-1/lib/python3.10/site-packages

sys.executable:
/home/goerz/.pyenv/versions/miniforge3-23.3.1-1/bin/python

sys.version:
3.10.12 | packaged by conda-forge | (main, Jun 23 2023, 22:40:32) [GCC 12.3.0]

platform.platform():
Linux-5.13.0-37-generic-x86_64-with-glibc2.31

which -a jupyter:
/home/goerz/.pyenv/versions/miniforge3-23.3.1-1/bin/jupyter
/home/goerz/.pyenv/shims/jupyter

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions