jupyterlab / jupyterlab-git

A Git extension for JupyterLab
BSD 3-Clause "New" or "Revised" License
1.45k stars 313 forks source link

ignores changes below certain cells #1350

Open mesvam opened 2 weeks ago

mesvam commented 2 weeks ago

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

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.