简体   繁体   中英

VS Code can't open ipynb file

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.

在此处输入图片说明

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, eg 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

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'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

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 .

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.

对我来说,最大化和重置终端面板不起作用,而卸载并重新安装 VSCode Python 扩展解决了这个问题。

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

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.

在此处输入图片说明

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, eg 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM