Vscode-jupyter: Error: Cannot run cells, duplicate documents found

Created on 16 Aug 2019  路  4Comments  路  Source: microsoft/vscode-jupyter

Environment data

  • VS Code version: 1.37.1
  • Extension version: latest insiders build
  • OS and version: macOS 10.14.6
  • Python version: 3.6.7 (miniconda)

Expected behaviour

Executing cells in the Python interactive window should work even if a file is open in multiple tabs.

Actual behaviour

I get the error message

Cannot run cells, duplicate documents for my_notebook.py found.

Steps to reproduce:

  1. Open a Python file with code cells and uncommited changes.
  2. Also open the file in working tree view (changes side by side).
  3. Go back to the first tab and try to run any cell. It only works once all other tabs with that file have been closed.
bug

All 4 comments

Thanks for the report @janosh. I can repro this as well, we'll take a look.

This error also happens when reverting a commit from the active editor pane.

Any updates on this ? It's very annoying not being able to revert a change via git.

I'm also experiencing this issue.

Was this page helpful?
0 / 5 - 0 ratings