Warm tip: This article is reproduced from stackoverflow.com, please click
jupyter python visual-studio-code

VS Code can't open ipynb file

发布于 2021-01-13 13:46:45

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
Questioner
Henrique Branco
Viewed
0
10.1k 2020-09-24 07:42

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 :)