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

Existing and new jupyter notebooks not loading in 3.12.0, 4.0.0-pre-release, or 4.0.1 #4689

Closed
vprzybylo opened this issue Jan 5, 2022 · 14 comments
Labels
waiting-for-info Waiting for more information from submitter

Comments

@vprzybylo
Copy link

Amazing work! I am thoroughly enjoying remote dev using code-server; thanks for the hard work!
This commentary is similar to #4395.

OS/Web Information

  • Web Browser: Chome/Safari
  • Local OS: MacOS
  • Remote OS: Linux
  • Remote Architecture: x86_64
  • code-server --version: 3.12, 4.0.0, and 4.0.1 tested

Issue

Existing jupyter notebooks and new notebooks aren't appearing to execute. I see the jupyter menu for execution of cells and outline but the page never loads (loading bar keeps panning back and forth).

Steps to Reproduce

  1. I am using this dockerfile and this docker-compose.yml
  2. My containers are then spun up using UID_GID="$(id -u):$(id -g)" docker-compose -f /raid/data/docker_builds/docker-compose.yml up --build in a slurm script.
  3. I navigate to a chrome or safari browser on the host server on port 8443 and try to open a notebook, but it just hangs.

Screen Shot 2022-01-05 at 3 15 01 PM

Logs

There are no errors in my logs and I see an active runtime status for jupyter (ms-toolsai.jupyter-2021.11.1001552333) and python (ms-python.python-2021.12.1559732655).

Notes

I have tried including --install-extension ms-python.python and jupyter in the dockerfile and removing it and installing it through the extension marketplace but that does not make a difference. I also have tried installing from .vsix but had compatibility issues. Lastly, I included "enabledApiProposals" list to the jupyter extension package.json and reinitialized code-server but the changes were not picked up.

@jsjoeio
Copy link
Contributor

jsjoeio commented Jan 5, 2022

Thanks for the thorough report @vprzybylo! I have tested it on v4.0.1 on macOS with Brave and I cannot reproduce. Here is more info about the setup I'm testing:

  • code-server v4.0.1
  • Python (extension) v2021.12.1559732655 with Python 3.7.9
  • Jupyter v2021.11.1001552333

In my settings.json, I also have this set:

  "workbench.editorAssociations": {
    "*.ipynb": "jupyter.notebook.ipynb"
  },

Video

This is what happens with an existing notebook.

Screen.Recording.2022-01-05.at.3.31.02.PM.mov

And this is from a new notebook:
image

v4.0.1 also uses Open VSX by default so if you search for it in the Extensions panel, it should install the latest versions. Can you try that or try adjusting your settings.json and let us know if that works?

@jsjoeio jsjoeio added the waiting-for-info Waiting for more information from submitter label Jan 5, 2022
@benz0li
Copy link
Contributor

benz0li commented Jan 6, 2022

Most probably the same problem as #3782 (comment):

@vprzybylo Meaning, one must explicitly open a folder (File > Open Folder...) before opening a Jupyter notebook.

@CNorato
Copy link

CNorato commented Jan 6, 2022

I think I have a similar issue.
My codeserver URL is http://ipaddress/codeserver/?folder=/home/ubuntu/CodePlace/Code_Python and the codeserver version is v4.0.1.
When I was in ~/CodePlace/Code_Python/ and try to open a notebook file, I got these errors.
console_logs1
And when I went into ~/CodePlace/Code_Python/NotebookTest and open the notebook file, I got the previous errors and a new error.
console_logs2

@benz0li
Copy link
Contributor

benz0li commented Jan 6, 2022

@CNorato Do you access code-server in private/incognito mode?
👉 If so: Try disabling private/incognito mode or make an exception for your IP address/domain.

Service workers do not work in private/incognito mode. Accessing code-server via HTTP instead of HTTPS may cause further problems.


See https://demo.jupyter.b-data.ch for a reference deployment using JupyterHub and JupyterLab + code-server.

@CNorato
Copy link

CNorato commented Jan 6, 2022

@benz0li Thank you for your advice. I have tried to disable all the private/incognito options, but it still doesn't work.
I think maybe is the problem of HTTP. However, I can't change to HTTPS for now due to some reasons. If I have time to solve the problem I will reply to this issue ASAP.

@vprzybylo
Copy link
Author

Hi all, thanks for the help! I have updated my settings.json, gone to file -> open folder before opening a notebook, and am not in an incognito window. Open VSX is not appearing in the extension panel for me - thoughts? Perhaps opening through an insecure domain is causing the issue (see warning in screenshot)? I've also noticed that when browsing an extension, I don't see any text under details, which could be related. Perhaps I should talk with my admins regarding an SSL certificate following #1627.
Screen Shot 2022-01-06 at 10 53 07 AM

@fritterhoff
Copy link
Contributor

@benz0li Thank you for your advice. I have tried to disable all the private/incognito options, but it still doesn't work. I think maybe is the problem of HTTP. However, I can't change to HTTPS for now due to some reasons. If I have time to solve the problem I will reply to this issue ASAP.

Hi all, thanks for the help! I have updated my settings.json, gone to file -> open folder before opening a notebook, and am not in an incognito window. Open VSX is not appearing in the extension panel for me - thoughts? Perhaps opening through an insecure domain is causing the issue (see warning in screenshot)? I've also noticed that when browsing an extension, I don't see any text under details, which could be related. Perhaps I should talk with my admins regarding an SSL certificate following #1627. Screen Shot 2022-01-06 at 10 53 07 AM

@vprzybylo as already mentioned in your screenshot, in both cases this issue is caused because the lack of https://. several features only work using https://

@vprzybylo
Copy link
Author

Thanks for the response! Closing this issue; I will work on getting an SSL certificate.

@doveppp
Copy link

doveppp commented Mar 16, 2022

I think I have a similar issue. My codeserver URL is http://ipaddress/codeserver/?folder=/home/ubuntu/CodePlace/Code_Python and the codeserver version is v4.0.1. When I was in ~/CodePlace/Code_Python/ and try to open a notebook file, I got these errors. console_logs1 And when I went into ~/CodePlace/Code_Python/NotebookTest and open the notebook file, I got the previous errors and a new error. console_logs2

hi ,i have same issue.
Did you solve it?

@CNorato
Copy link

CNorato commented Mar 16, 2022

yes, https:// did work.

@0x1orz
Copy link

0x1orz commented Apr 19, 2022

I have the same issue with code-server 4.2.0

@jsjoeio
Copy link
Contributor

jsjoeio commented Apr 19, 2022

@sheljoy can you open a new bug report?

@hanson-young
Copy link

thank god! https:// did work.

@apocrf
Copy link

apocrf commented May 11, 2023

thank you a lot, https fix the problem with jupyter cells visibility

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting-for-info Waiting for more information from submitter
Projects
None yet
Development

No branches or pull requests

9 participants