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.

I can create a new jupyter notebook just fine, but opening existing one results in "Cannot open resource with notebook editor type 'jupyter-notebook', please check if you have the right extension installed or enabled."

See original GitHub issue

Bug: Notebook Editor, Interactive Window, Editor cells

Steps to cause the bug to occur

  1. Connect to a remote server.
  2. Create a jupyter notebook. Write some cells. Save. Log out of remote server.
  3. Reconnect to remote server, right click on jupyter notebook file -> open with -> Jupyter Notebook.

Actual behavior

Result usually is

Cannot open resource with notebook editor type ‘jupyter-notebook’, please check if you have the right extension installed or enabled.

Occasionally it opens correctly, but most of the time, it does not.

However, if I create new .ipynb file, Jupyter starts up correctly. If I then try to open the file with Jupyter, I still get the same error.

This error does not seem to be reproduced with I am working locally; usually on a remote server. I am using the remote-ssh extension to log into the remote server.

Expected behavior

saved Jupyter notebook files should be able to open correctly, since new notebooks work correctly.

Your Jupyter and/or Python environment

Please provide as much info as you readily know

Python 3.6.9 64-bit.

up-to-date Jupyter, installed today.

  • Jupyter server running: Local | Remote | Remote
  • Extension version: 20YY.MM.#####-xxx |
  • VS Code version: #.## | July 2020 (version 1.48)
  • Setting python.jediEnabled: true | false
  • Setting python.languageServer: Jedi | Microsoft | None
  • Python and/or Anaconda version: #.#.# | Python 3.6.9 64-bit.
  • OS: Windows | Mac | Linux (distro): Locally, Mac, Server uses Ubuntu Linux
  • Virtual environment: conda | venv | virtualenv | N/A | … N/A

Python Output

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

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Santosh-Guptacommented, Oct 5, 2020

Sorry for late response, was working on another projects. I’ve been using it for the last couple days and its working well.

0reactions
SantoshGuptaMLcommented, Apr 1, 2021

It is fixed, though I am not sure what was the cause of the fix. I upgraded jupyterlab, and also reopened the notebook. I didn’t see this comment so I didn’t think of isolating that method.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot open jupyter notebook in VSCode - Stack Overflow
An easy way to fix this should be to save the file with an .ipynb ending, vs-code should then automatically start the notebook...
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 >
What to do when things go wrong - The Jupyter Notebook
If you 're using a menu shortcut or Anaconda launcher to start it, try opening a terminal or command prompt and running the...
Read more >
Notebooks Documentation | Kaggle
Explore and run machine learning code with Kaggle Notebooks, a cloud computational environment that enables reproducible and collaborative analysis.
Read more >
Jupyter in Visual Studio Code – June 2021 Release - Python
If you already have the Python extension installed, you can also get ... It is important to determine whether you trust notebooks that...
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