code-server icon indicating copy to clipboard operation
code-server copied to clipboard

[Bug]: Problem opening .ipynb files (Jupyter Notebook)

Open c-dasq opened this issue 4 years ago • 45 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

OS/Web Information

  • Web Browser: Microsoft Edge / Chrome / Firefox / Vivaldi / Safari
  • Local OS: Windows 10.0.19044.1826 / macOS Big Sur 11.6.8
  • Remote OS: Raspberry Pi OS Lite (64-bit) 2022-04-04 (Kernel: 5.15 | Debian: 11 'bullseye')
  • Remote Architecture: arm64
  • code-server --version: 4.5.2

Steps to Reproduce

  1. open code-server
  2. try to open .ipynb file
  3. trying to create an .ipynb file

Expected

The file should open and be viewable

Actual

Code-server keeps trying to open the file, or creating the file, never finishes loading on screen.

Logs

No response

Screenshot/Video

image

Does this issue happen in VS Code or GitHub Codespaces?

  • [X] I cannot reproduce this in VS Code.
  • [X] I cannot reproduce this in GitHub Codespaces.

Are you accessing code-server over HTTPS?

  • [X] I am using HTTPS.

Notes

No response

c-dasq avatar Aug 18 '22 19:08 c-dasq

yes, I know, but ipykernel was necessary; everything works fine?

c-dasq avatar Sep 01 '22 13:09 c-dasq

Its working with my desktop firefox for now. Thanks. Android doesn't work ( code-server:4.4.0 did work even with android ). How did you install ipykernel? Is pip3 install ipykernel sufficient? Cause that's what I am doing via the Dockerfile for my own production server usually ( the test server under emporea.net was a bare-bone code-server container, without any extensions, that's why you had to install it)

Would be nice to know every additional steps you took on my deployment so i can reproduce them. Did you install anything else than pip and ipykernel ( i obviously have them installed too on my production deployment )

Edit: havent changed anything and its not working anymore. Could you give it a try too?

Emporea avatar Sep 01 '22 14:09 Emporea

Ok, for some reason, code-server couldn't find the path for Python:

01 Python is not installed

Even if I told it to do it manually (Python is indeed installed):

02 Select Interpreter

So in extensions I uninstalled it and reinstalled it:

03 Uninstalling Python

And now everything is back to normal:

04 Normalidad

c-dasq avatar Sep 01 '22 16:09 c-dasq

To install ipykernel you have to go to the path where Python is (or change the path), and that's it:

/usr/bin/python3 -m ipykernel install

c-dasq avatar Sep 01 '22 16:09 c-dasq

Thank you all very much, I am going to close this issue.

c-dasq avatar Sep 01 '22 16:09 c-dasq