1

I have a Jupyter Notebook open in Jupyter Lab. I run black to reformat the code in the open Jupyter Notebook. If I try to save the file, Jupyter Lab raises

"notebook.ipynb" has changed on disk since the last time it was opened or saved. Do you want to overwrite the file on disk with the version open here, or load the version on disk (revert)?

How can I revert the Jupyter Notebook without try to save it?

Raniere Silva
  • 2,527
  • 1
  • 18
  • 34
  • 1
    Are you using a jupyterlab widget to run black or the command line app? And does clicking “revert” not do what you’re looking for for some reason? – Michael Delgado Apr 08 '22 at 13:19
  • I'm using the command line. Click in "revert" from the pop up menu does what I'm looking but I was looking how to avoid try to save and select revert. – Raniere Silva Apr 12 '22 at 04:02

1 Answers1

0

I found the answer at File > Reload from Disk.

enter image description here

Raniere Silva
  • 2,527
  • 1
  • 18
  • 34