-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[Bug]: Jupyter Notebook not working #4777
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
Comments
Oops. Looks like our new template is missing reproduction steps. How do I reproduce this? |
Well, i I use the docker image linuxserver/code-server exposing port 8443. To access webpage I use nginx with the following config:
So only weird stuff is injecting FiraCode .css file.
Besides that, there is no much more honestly. |
@jsjoeio Jupyter Notebooks work just fine: See https://demo.jupyter.b-data.ch for a reference deployment using JupyterHub and JupyterLab + code-server. See #4689 (comment)
plus
|
You may also
|
Maybe that was my issue. Thanks for following up @benz0li! I tested on your deployment and indeed, it works as expected |
Thank you for the replay but none of your suggestions has to do with my case: as you can see from my nginx configuration I am indeed using https to connect with |
@vdallavalle thanks for confirming! Can you share your |
Here is my
As you can see, some jupyter settings are commented out (such settings are mentioned in other comments and somehow helped in those cases), actually the errors I'm talking about still occurs even if such settings are enabled. |
Everything working properly with
@vdallavalle How did you install |
@benz0li
However, running jupyter on the image still gives the error (jupyter keeps loading). Do you have an idea in which part it didn't work? |
@benz0li https://www.kubeflow.org/docs/components/notebooks/container-images/ They require an HTTP interface on port 8888, not HTTPS. I am not really sure if exposing the image server on the HTTPS interface is a viable option for users trying to use code-server on the top of Kubeflow. Probably this is the reason why the default version they provide for code-server is 3.10.2 link, which does not have this kind of problem when connected with HTTP interface (I have tried this on Kubeflow, trust me). But I would really like to have code-server with a version above 4.0.0, which has features that I need such as advanced tap options and the feature that keeps terminal sessions alive even with the session reload 😭 . Do you have any suggestions? |
@crissed53 TLS termination should be done by Kubeflow not by the container image(s). Have a look at kubeflow/kubeflow#5976. ℹ️ For https://demo.jupyter.b-data.ch TLS termination is done by JupyterHub. The JupyterLab container exposes HTTP on port |
@benz0li |
Thank you for the suggestion, actually you are right: btw @jsjoeio what was your setup when you reproduced the issue? Was that caused by the unopened folder or not? |
@vdallavalle I suggest you open an issue at https://github.com/linuxserver/docker-code-server/issues then. |
Yeah, just tried install script on ubuntu machine (so no Docker, just plain |
@vdallavalle thank you for following up! You're saving me a bunch of time 😅 I'll close this for now. If folks have issues, please refer to @benz0li's notes: #4777 (comment) |
So just to clarify, the error above is expected when running
|
@ggydush-fn strange! Any browser logs worth sharing? |
Posting what I've done so far just for record keeping:
Issues:
Opening an
Also, let me know if I missed something! I can see that Browser logs:
|
Ah, |
I updated to 4.0.2 and now Jupyter Notebooks seem to be working fine... |
@gogobd great to hear! Thanks for reporting. |
Hi, I am having a similar issue, on version 4.0.1, and my error when trying to create a new Notebook is
The extension and the apt packages mentioned in this thread are all installed. Still no success. Any idea? Many thanks |
@aghasemi can you try using 4.1.0? |
I'm on 4.1.0 |
I can confirm it is 4.1.0. Sorry for the typo. It is likely #4976, as I am also running CS via nginx on a domain. |
Awesome! Thanks for checking. Feel free to 👍🏼 that issue and subscribe there so you know when it's fixed |
Is there an existing issue for this?
OS/Web Information
Expected
[Notebook Creation]: Creation and opening of new .ipynb file with proper layout as shown in MS documentation
[Notebook Opening]: Opening .ipynb file should result in proper layout shown with possibility of editing the notebook file.
Actual
[Notebook Creation]: Error message "Command 'Jupyter: Create New Jupyter Notebook' resulted in an error (NO provider registered for view type: 'jupyter-notebook')", no file being created, black screen.
[Notebook Opening]: Error message "Cannot open resource with notebook editor type 'jupyter-notebook', please check if you have the right extension installed or enabled.", file content not shown, black screen.
Logs
In the following, the Chrome console output related to the situations mentioned above
[Notebook Creation]:
...
...
[Notebook Opening]:
Screenshot/Video
[Notebook Creation]:

[Notebook Opening]:

Content of folder

/usr/local/share/.config/yarn/global/node_modules/code-server/vendor/modules/code-oss-dev/extensions/ipynb
(Mentioned in the above errors)Does this issue happen in VS Code?
Are you accessing code-server over HTTPS?
Notes
Trying to work with Jupiter Notebooks, unable to have it working with ms-python.python & ms-toolsai.jupyter extensions having tried both GUI and CLI (with
code-server --install-extension
) install methods.Tried to look for other issues posted, no one seems to be similar as most were related to stuff regarding old code-server versions (prior to 4.0)
Tried with enviroments:
Same errors in both cases
Nginx reverse proxy is used to access code-server
The text was updated successfully, but these errors were encountered: