Henrique Branco
Henrique Branco

Reputation: 1930

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.

enter image description here

Here is my environment data:

Upvotes: 20

Views: 37790

Answers (8)

Mark Boomer
Mark Boomer

Reputation: 1

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'

Upvotes: 0

astramax
astramax

Reputation: 1

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

Upvotes: 0

jost
jost

Reputation: 89

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

Upvotes: 1

m10s
m10s

Reputation: 57

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

Upvotes: 5

PowderFan
PowderFan

Reputation: 98

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

Upvotes: 3

Tom Hirshberg
Tom Hirshberg

Reputation: 21

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.

Upvotes: 0

Maharsh Suryawala
Maharsh Suryawala

Reputation: 23

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.

Upvotes: 2

Dikshit Bhardwaj
Dikshit Bhardwaj

Reputation: 1

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

Upvotes: -3

Related Questions