VS Code can't open ipynb file

Viewed 15793

Have everyone already had this problem, where VS Code keeps loading all the time and won't open a ipynb file? I've tried to use python 3.7 but same problem. Also tried to reinstall both VS Code and Anaconda, no success.

enter image description here

Here is my environment data:

  • VS Code version: 1.49.0
  • Python extension version:v2020.8.108011
  • OS and version: Ubuntu 20.04
  • Python version (& distribution if applicable, e.g. Anaconda): Anaconda python 3.8.3
  • Type of virtual environment used: using conda base environment
  • Value of the python.languageServer setting: "Pylance"
  • ipython version: 7.16.1
  • jedi version: 0.17.1
  • ipykernel version: 5.3.2
8 Answers

I've solved (for now) this problem by downgrading jupyter extension to previous version.

Go to Extension (in the left vertical panel) > select Jupyter > click the down arrow of the Uninstall button > then you get "install another version" tooltip > click it > select other version > reload vscode

In their official GitHub page, they are tracking this issue already. There is also a solution (kind of) right now. You have to maximize the terminal panel below and then restore the panel size (basically max and min with the arrow button). Then the Notebook loads and everything works fine. :D

The workaround was in this comment: https://github.com/microsoft/vscode-python/issues/13901#issuecomment-691625412

Not perfect but at least all the features are there and I can work with my notebooks again :)

I'm facing the same issue after the latest update. You can try importing the notebook by pressing ctrl+shift+p/command+shift+p and run Import Jupyter Notebook.

For me maximizing and resetting the terminal panel didn't work whereas uninstalling and reinstalling the VSCode Python extension solved the problem.

I'm facing the same problem since the last update. For now, in case you still want to use VSCode, you can 'convert to python script' and run it in interactive mode (right click on the notebook, and choose that). It doesn't solve the issue, but make it possible currently to use your notebooks in VSCode.

I have the same behavior. Downgrades of Jupyter extension works for me (screen)

In VS Code, double-clicking just stopped working for me for some reason. Try right-clicking the *.ipynb file in the VS explorer panel and select 'Open in Notebook Editor'

Download the jupyter Notebook extention in VS code. and than click the .ipynb file.

After clicking .ipynb file vs code will preview. enter image description here

Related