question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Open diff window on first click of .ipynb file in version control tab

See original GitHub issue

Feature: Notebook Editor, Interactive Window, Python Editor cells

Description

When clicking on an .ipynb file in from the version control tab, when I click the first time, it opens a notebook editor. When I click the second time, it opens the git diff window that I expect. It looks like this was the intentional design in response to microsoft/vscode-python#7905. However, I would appreciate it if the notebook editor wasn’t opened at all, and the git diff window opened directly. The notebook editor can take a long time to open, and I have to wait for the whole notebook to load before I can open the git diff window. If it’s a large notebook, or if I’m accessing a remote machine, this can take a while. The option to open the notebook editor is already there in the “Open File” button next to the file name in the version control tab.

Thanks for all your hard work on this extension! It’s a fantastic tool that I rely on almost every day.

Details:

OS: Mac OS Mojave 10.14.6 VSCode version: 1.41.1 Python Extension version: 2019.11.50794

Microsoft Data Science for VS Code Engineering Team: @rchiodo, @IanMatthewHuff, @DavidKutu, @DonJayamanne, @greazer

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
benlindsaycommented, Mar 11, 2021

This "python.dataScience.useNotebookEditor": false fix used to work fine for me, but at some point it stopped working for me. The behavior when I click on a changed notebook from the Source Control pane is to open 2 notebooks side by side, which do represent the old and new versions, but with no highlighting of any changes. Now it looks like the setting that controls whether to use the notebook editor by default on .ipynb files is "jupyter.useNotebookEditor", but that doesn’t fix it for me either. There’s also another setting: "notebook.diff.enablePreview" which also doesn’t fix it.

This is on a remote machine accessed via the remote-ssh extension. I’ve verified that I’ve made the settings changes in all 3 possible places, User, Workspace, and Remote:

image

image

Any guesses as to why I’m experiencing this and what I can do to fix it?

1reaction
rchiodocommented, Jan 6, 2020

There’s also a setting that can disable auto open: "python.dataScience.useNotebookEditor": false

Read more comments on GitHub >

github_iconTop Results From Across the Web

Open diff window on first click of .ipynb file in version control tab
When clicking on an .ipynb file in from the version control tab, when I click the first time, it opens a notebook editor....
Read more >
Version Control With Jupyter Notebook | by Shinichi Okada
Jupyter notebook generates files that contain metadata, source code, ... Only one word of change results in thousands of letters in git diff....
Read more >
Working with Jupyter Notebooks in Visual Studio Code
If you have an existing Jupyter Notebook, you can open it by right-clicking on the file and opening with VS Code, or through...
Read more >
How to Use Git With Jupyter Notebooks in DataSpell
Get up and running with version control using Git when working with ... we first need to right-click on this workspace and select...
Read more >
Jupyter Notebook 6.5.2 documentation - Read the Docs
ipynb notebooks and standard .py Python source code files into the notebook list area. When starting a notebook server from the command line,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found