Skip to content

ignores changes below certain cells #1350

Open
@mesvam

Description

@mesvam

Description

I discovered a case where the extension is not showing diffs below a particular cell. The cell output contains a large image. I've exported a minimal subsection of the notebook that reproduces the issue: attached here: test.zip

Reproduce

  1. Init a git repo, and add the notebook file and make a commit
  2. Change the text in the first cell "above", save the notebook, and make a commit
  3. Change the text in the last cell "below", save the notebook, and make a commit
  4. Open the sidebar in Juypter-lab, go to the last commit and click the "View file changes" icon

Current behavior

Changes to the cell "above" are displayed correctly, but changes to the cell "below" do not appear. The display shows as if the file is unchanged.

Expected behavior

Changes to all cells should display as diffs

Context

  • Python package version:
# packages in environment at C:\Users\<redacted>\AppData\Local\Programs\Miniconda3:
#
# Name                    Version                   Build  Channel
jupyterlab-git            0.50.0          py311haa95532_0
  • Extension version:
JupyterLab v4.2.4
C:\Users\<redacted>\AppData\Local\Programs\Miniconda3\share\jupyter\labextensions
        ipyparallel-labextension v8.6.1 enabled  X
        jupyter-matplotlib v0.11.3 enabled ok
        nbdime-jupyterlab v3.0.1 enabled ok
        @jupyter-widgets/jupyterlab-manager v5.0.10 enabled ok (python, jupyterlab_widgets)
        @jupyterlab/git v0.50.0 enabled ok (python, jupyterlab-git)


   The following extensions may be outdated or specify dependencies that are incompatible with the current version of jupyterlab:
        ipyparallel-labextension

   If you are a user, check if an update is available for these packages.
   If you are a developer, re-run with `--verbose` flag for more details.
  • Git version:
    git version 2.39.2
  • Operating System and its version:
Command Line Output
Paste the output from your command line running `jupyter lab` here, use `--debug` if possible.
Web Browser Output
Paste the output from your browser web console here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions