Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VS Code can't open .ipynb files #612

Closed
HenriqueAJNB opened this issue Sep 12, 2020 · 48 comments
Closed

VS Code can't open .ipynb files #612

HenriqueAJNB opened this issue Sep 12, 2020 · 48 comments
Labels
bug Issue identified by VS Code Team member as probable bug

Comments

@HenriqueAJNB
Copy link

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

@dorcohe
Copy link

dorcohe commented Sep 12, 2020

Same issue here - windows 10.

@Kri-Ol
Copy link

Kri-Ol commented Sep 12, 2020

Same here

Interactive python (with cells marked by #%%) works fine

Anaconda x64 Python 3.8.5

Version: 1.49.0 (system setup)
Commit: e790b931385d72cf5669fcefc51cdf65990efa5d
Date: 2020-09-10T13:22:08.892Z (2 days ago)
Electron: 9.2.1
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Windows_NT x64 10.0.19041

@paulfhardy
Copy link

Same issue here, same environment, was working fine yesterday. There was a VS code update and a windows update in the past few days.

@itslijohnny
Copy link

same issue windows 10 wsl2 Anaconda

@raghavnarula
Copy link

After updating VS code I also faced the same issue.
OS -- Linux Based (Ubuntu 18.04)
Vs code - 1.49.0
Python 3.8.2
using pip packages.

@paulfhardy
Copy link

I reinstalled a prior version of VS Code and now I can once again open .Ipynb files no problem. I went from VS Code 1.49 down to 1.46.

@7kemZmani
Copy link

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

@danghoangminh
Copy link

same issues here, I can't open any file .ipynb it still loading but doesn't show any error

@saiarvind-ps
Copy link

same issue here, cannot open any ipynb files

@jkrygel
Copy link

jkrygel commented Sep 13, 2020

Same issue here.

@blanpa
Copy link

blanpa commented Sep 13, 2020

Same issue here

@blanpa
Copy link

blanpa commented Sep 13, 2020

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

@HenriqueAJNB
Copy link
Author

I reinstalled a prior version of VS Code and now I can once again open .Ipynb files no problem. I went from VS Code 1.49 down to 1.46.

Didn't work for me. I'm receiving this message now:

image

Any other alternatives?

@HenriqueAJNB
Copy link
Author

There is a similar issue here. It's seems a bug of version 1.49...

@joyceerhl
Copy link
Contributor

Hi all, thanks for bringing this to our attention and sorry for the trouble. I can repro this and it appears to be associated with the 1.49 upgrade. We'll look into this.

@ashish735
Copy link

Same Issue here

@raghavnarula
Copy link

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.

@yosekeiree
Copy link

Same issue on Ubuntu 20.04 VS Code version 1.49.0, tried reinstall jupyter (all including kernel) - not helped

@yosekeiree
Copy link

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

Works for me, but needed to do each time i open vscode

@raguirregabiria
Copy link

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

It worked, thanks mate

@Juicob
Copy link

Juicob commented Sep 14, 2020

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!

@matheuslima29
Copy link

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

@DiaAzul
Copy link

DiaAzul commented Sep 14, 2020

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.

@rchiodo
Copy link
Contributor

rchiodo commented Sep 14, 2020

This should be an upstream problem (well as far as we know right now):
microsoft/vscode#106587.

@FanchenBao
Copy link

FanchenBao commented Sep 14, 2020

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 on macOS 10.15.6. Spent half an hour scratching my head on this, almost turned bald.

@itslijohnny
Copy link

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

Works for me

@rchiodo
Copy link
Contributor

rchiodo commented Sep 14, 2020

@huyho2311 I used the command palette: "Toggle Maximize Panel" to cause the maximize to occur.

@huyho2311
Copy link

@huyho2311 I used the command palette: "Toggle Maximize Panel" to cause the maximize to occur.

thanks, I just pulled up the panel and saw it, of course it would be there hahaha

@xiaoharper
Copy link

I have the same issue(cannot load .piynb after upgrade VS code). and the minimize-maximize the panel works for me.

Is there an ETA for the fix?

@yosekeiree
Copy link

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

Works for me, but needed to do each time i open vscode

@HenriqueAJNB
Copy link
Author

HenriqueAJNB commented Sep 16, 2020

I've just completely uninstalled VS Code from ubuntu, including all config files and reinstalled it. Now working normally.

@7kemZmani
Copy link

Noticed the extension update asking for window reload. After reloading, I can confirm that this issue is fixed.

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.

OS: Windows 10 20H2

@rchiodo
Copy link
Contributor

rchiodo commented Sep 16, 2020

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.

@raghavnarula
Copy link

Removed VS code (version: 1.49) and it's config files . After reinstalling .ipynb files started opening (version: 1.47)

@rchiodo
Copy link
Contributor

rchiodo commented Sep 17, 2020

This fix here should make this all work when we finally ship our September release:
microsoft/vscode-python#13371

The root cause of this issue is:

  • we turned on an experiment for enabling custom editor support by mistake.
  • we had a bug with our custom editor support that we hadn't shipped yet
  • maximizing VS code (or opting out of the experiment) works around this bug.

Right now the experiment is turned off again so as long as you reload VS code you shouldn't be hitting this bug anymore.

@amitmeel
Copy link

Looks like it has been fixed in 1.49.1 version and Notebooks are loading.

@rchiodo rchiodo closed this as completed Sep 28, 2020
@QPeiran
Copy link

QPeiran commented Nov 8, 2020

Hi, I have updated to version 1.51 this morning and this issue BACK FROM DEAD! and the previous trick (maximize panel) no longer works..
Solved by down-grade to version 1.47

@joyceerhl
Copy link
Contributor

Hi @QPeiran thanks for letting us know. Could you please file a new issue at http://github.com/microsoft/vscode-python/issues/new/choose and provide logs from the 'Python' output panel please? That will help us figure out what's going on here.

@Kri-Ol
Copy link

Kri-Ol commented Nov 10, 2020

Hi, I have updated to version 1.51 this morning and this issue BACK FROM DEAD! and the previous trick (maximize panel) no longer works..
Solved by down-grade to version 1.47

I have no problems with opening .ipynb in VSC 1.51.0

@DonJayamanne DonJayamanne transferred this issue from microsoft/vscode-python Nov 11, 2020
@DonJayamanne DonJayamanne added the bug Issue identified by VS Code Team member as probable bug label Nov 11, 2020
@biplavc
Copy link

biplavc commented Nov 25, 2020

Getting the following message

Unable to open 'scratch.ipynb (Working Tree)': Using the Jupyter notebook editor requires the stable version of VS code and the CustomEditor experiment to be enabled..****

Version: 1.51.1
Commit: e5a624b788d92b8d34d1392e4c4d9789406efe8f
Date: 2020-11-10T23:31:29.624Z
Electron: 9.3.3
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Linux x64 5.4.0-54-generic snap

Ubuntu 18.04

The above-mentioned approaches didn't work for me.

@teddybee
Copy link

Same issue here with 1.51.1
Windows 10 2020H2

@KiteRunner2
Copy link

Same issue, was working fine until I updated to 1.51.1...

@QPeiran
Copy link

QPeiran commented Nov 26, 2020

#486
Update both vscode and python extention worked for me

@biplavc
Copy link

biplavc commented Nov 26, 2020

#486
Update both vscode and python extention worked for me

@QPeiran can you provide your version details ?

@QPeiran
Copy link

QPeiran commented Nov 26, 2020

#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

@biplavc
Copy link

biplavc commented Nov 27, 2020

#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

Issue persists in my case, windows OS is giving a different error message

StdErr from ShellExec, Did not find path entry D:\Anaconda\bin
Did not find path entry D:\Anaconda\bin
 for D:/Anaconda/Scripts/activate && conda activate base && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python c:\Users\user_name\.vscode\extensions\ms-python.python-2020.11.371526539\pythonFiles\pyvsc-run-isolated.py c:/Users/user_name/.vscode/extensions/ms-python.python-2020.11.371526539/pythonFiles/printEnvVariables.py

Version: 1.51.1 (system setup)
Commit: e5a624b788d92b8d34d1392e4c4d9789406efe8f
Date: 2020-11-10T23:34:32.027Z
Electron: 9.3.3
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Windows_NT x64 10.0.19041

Both anaconda and vs code are added to system variables.

@QPeiran
Copy link

QPeiran commented Nov 30, 2020

#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

Issue persists in my case, windows OS is giving a different error message

StdErr from ShellExec, Did not find path entry D:\Anaconda\bin
Did not find path entry D:\Anaconda\bin
 for D:/Anaconda/Scripts/activate && conda activate base && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python c:\Users\user_name\.vscode\extensions\ms-python.python-2020.11.371526539\pythonFiles\pyvsc-run-isolated.py c:/Users/user_name/.vscode/extensions/ms-python.python-2020.11.371526539/pythonFiles/printEnvVariables.py

Version: 1.51.1 (system setup)
Commit: e5a624b788d92b8d34d1392e4c4d9789406efe8f
Date: 2020-11-10T23:34:32.027Z
Electron: 9.3.3
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Windows_NT x64 10.0.19041

Both anaconda and vs code are added to system variables.

@biplavc I didn't use ananconda -- pipenv instead

@microsoft microsoft locked as resolved and limited conversation to collaborators Nov 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests