vscode-jupyter: VS Code can't open .ipynb files

Environment data

  • VS Code version: 1.49.0
  • Extension version (available under the Extensions sidebar): 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 environment
  • Value of the python.languageServer setting: “Pylance”
  • ipython version: 7.16.1
  • jedi version: 0.17.1
  • ipykernel version: 5.3.2

Expected behaviour

VS Code could open .ipynb normally. It’s opening normally in Jupiter Notebook

Actual behaviour

VS Code keeps loading all the time and won’t open the .ipynb file.

Steps to reproduce:

  1. Open VS Code
  2. Open any .ipynb file.

gif_vscode

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 21
  • Comments: 48 (6 by maintainers)

Most upvoted comments

until a proper fix comes out, just click on Maximize Panel Size then on the same button again to open your notebook …

photo-2020-09-13-10-14-28

until a proper fix comes out, just click on Maximize Panel Size then on the same button again to open your notebook …

photo-2020-09-13-10-14-28

worked for me

until a proper fix comes out, just click on Maximize Panel Size then on the same button again to open your notebook … photo-2020-09-13-10-14-28

Wow. I don’t understand why this works, but I’ll take it. Thanks mate!

Behaves as if the panel is loading the document then waiting for a screen redraw event, which never comes as there is nothing on the screen. Closing and opening the panel provides a screen draw event which displays the notebook.

What is more critical is how this bug got through QA and into a global release on a Friday as the team is going home for the weekend. It’s sloppy and needs explaining to everyone that spent time having to find workarounds for over 48 hours.

#486 Update both vscode and python extention worked for me

@QPeiran can you provide your version details ?

VSCode version: 1.51.0 Python Extention: v2020.10.332292344

just some minor issue is now happening, when closing vscode with some opened files, you should expect to see them opened the next time you launch vscode on that directory; not with *.ipynb notebooks; they’re now closed and have to be clicked on to start. Also the *.ipynb file icon is not loading on the opened file tab.

@7kemZmani that’s exactly the experiment we turned on. It fixed file associations with ipynb files. Once VS code ships the root cause of the problem in microsoft/vscode-python#13901 we’ll be able to turn this back on.

until a proper fix comes out, just click on Maximize Panel Size then on the same button again to open your notebook …

photo-2020-09-13-10-14-28

Worked For Me Thanks.