Not able to render jupyter lab/notebooks in browser although the kernel is starting alright. #319
-
Steps to Reproduce:
Jupyter Log Output: Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 15 comments 17 replies
-
That's surely a websocket and HTTPs issue, you need to setup a NGINX/Apache2 reverse proxy with SSL to load webviews in your browser. #96 This comment is very hot to solve your solution, although I could not find it helpful, as this does not explain from basics. And I wanted to setup a reverse proxy using docker. |
Beta Was this translation helpful? Give feedback.
-
You can also hop into the Chrome dev tools and check for webviews not being loaded. |
Beta Was this translation helpful? Give feedback.
-
I had the same problem. The simple direct solution is to make a When running applications in localhost no HTTPS is required to activate the web workers and the notebook will render as expected :) This was a problem for me when I was trying to find an IDE solution to my environment. After dropping openvscode-server solution because I was not able to render the notebooks, some hours later and other failed strategies I found somewhere recommended to use caddy server. Then searching more I found that you can run web workers in localhost without HTTPS. |
Beta Was this translation helpful? Give feedback.
-
@augustoicaro Thanks it worked, i had no idea that SSH tunnels, fixes HTTPs issues. |
Beta Was this translation helpful? Give feedback.
-
Yes @augustoicaro all works now, I have hosted it as a docker container and accessing remotely. |
Beta Was this translation helpful? Give feedback.
-
@nooobcoder I said the same thing that isn't a permafix, but create a https server was never prioritized since that tunnel solution is working well... |
Beta Was this translation helpful? Give feedback.
-
@augustoicaro Worked liked a charm! @nooobcoder Thanks again! |
Beta Was this translation helpful? Give feedback.
-
@binarycache that was very predictable. You can either use the FQDN or the IP address of the server whose port you want to forwarded to your local host. |
Beta Was this translation helpful? Give feedback.
-
Please provide further logs to track this down |
Beta Was this translation helpful? Give feedback.
-
@nooobcoder I am not sure how to get the logs from it but the issue is and its solution is mentioned here microsoft/vscode-python#2877 |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
-
@jeanp413 can i have a easy guide with Docker compose to have a reverse proxy with websockets for openvscode server. I want a least brainf**k method of rev proxy using docker. Also that would work with self signed certs without a domain name. |
Beta Was this translation helpful? Give feedback.
-
@nooobcoder cannot promise anything but I agree it would be really helpful to have a docker compose config in the docs |
Beta Was this translation helpful? Give feedback.
-
@binarycache About python language service, it will not work because it is not installed with Microsoft python extension, due to proprietary restrictions as remote extensions. So I use
@jeanp413, I'm using version 1.64.2 and it is working well with the ssh tunnel and accessing via localhost. The only problem I got in migration to 1.63.2 to 1.64.2 was the new way to start the server and now I need to use |
Beta Was this translation helpful? Give feedback.
-
I am using 1.66.1 and I am unable to view notebooks. The command I used was
|
Beta Was this translation helpful? Give feedback.
I had the same problem. The simple direct solution is to make a
ssh
with tunnel-L
to slrum node machine to the port that openvscode-server was started (usually 3000), something like:ssh -L 3000:slrum_node:3000 user@slrum_node
. And then, in your browser access aslocalhost
(localhost:3000
).When running applications in localhost no HTTPS is required to activate the web workers and the notebook will render as expected :)
This was a problem for me when I was trying to find an IDE solution to my environment. After dropping openvscode-server solution because I was not able to render the notebooks, some hours later and other failed strategies I found somewhere recommended to use caddy server.…