jupyter / notebook

Jupyter Interactive Notebook
https://jupyter-notebook.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
11.79k stars 5k forks source link

Showing cell difference. #1245

Open Carreau opened 8 years ago

Carreau commented 8 years ago

Requested at Jupyter Days Boston Education Panel:

Either a way to "Mark lines by clicking in the gutter, like when I select something, but I want to be able to keep using my mouse after".

Or after discussion, it might be possible to "hack" a codemirror diff-overlay mode and "freeze" a cell, so that any modification/addition appear in greenish-background.

ping @ellisonbg

JamiesHQ commented 7 years ago

cc @gnestor

gnestor commented 7 years ago

@Carreau Are they imagining something like this:

image

There is an demo of how to highlight the active line using CodeMirror: https://codemirror.net/demo/activeline.html

laurentperrinet commented 6 years ago

perhaps more simply, one could have a "diff" button that would launch the "nbdiff-web" utility from https://github.com/jupyter/nbdime as in this mock screenshot:

screen shot 2018-02-22 at 09 52 42