-
Notifications
You must be signed in to change notification settings - Fork 6.3k
-
I can ensure that I have installed the necessary Jupyter related extensions and downloaded Python dependencies in my conda virtual environment.
When I create a .ipynb using the 【Create: New Jupyter Notebook】in 【Command Palette】, it didn't respond even after clicking all the buttons.
image
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 3 comments 2 replies
-
Are you running with HTTPS and a valid certificate? Can you post the browser console logs?
Beta Was this translation helpful? Give feedback.
All reactions
-
It does seem to be related to my deployment of code server using the HTTP protocol, the console logs are shown below:
ERR 'crypto.subtle' is not available so webviews will not work. This is likely because the editor is not running in a secure context (https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts).: Error: 'crypto.subtle' is not available so webviews will not work. This is likely because the editor is not running in a secure context (https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts).
at Jut (http://120.48.9.239:20441/stable-912a7a9d89f560d1a204caf205833db0850e7b4b/static/out/vs/code/browser/workbench/workbench.js:34:52018)
at kot.mountTo (http://120.48.9.239:20441/stable-912a7a9d89f560d1a204caf205833db0850e7b4b/static/out/vs/code/browser/workbench/workbench.js:3170:13257)
at zK.nb (http://120.48.9.239:20441/stable-912a7a9d89f560d1a204caf205833db0850e7b4b/static/out/vs/code/browser/workbench/workbench.js:1736:1337)
at zK.createWebview (http://120.48.9.239:20441/stable-912a7a9d89f560d1a204caf205833db0850e7b4b/static/out/vs/code/browser/workbench/workbench.js:1736:836)
at http://120.48.9.239:20441/stable-912a7a9d89f560d1a204caf205833db0850e7b4b/static/out/vs/code/browser/workbench/workbench.js:1883:7281
at YK.wc (http://120.48.9.239:20441/stable-912a7a9d89f560d1a204caf205833db0850e7b4b/static/out/vs/code/browser/workbench/workbench.js:1883:7722)
at YK.Cc (http://120.48.9.239:20441/stable-912a7a9d89f560d1a204caf205833db0850e7b4b/static/out/vs/code/browser/workbench/workbench.js:1883:11336)
at YK.yc (http://120.48.9.239:20441/stable-912a7a9d89f560d1a204caf205833db0850e7b4b/static/out/vs/code/browser/workbench/workbench.js:1883:10023)
at YK.setModel (http://120.48.9.239:20441/stable-912a7a9d89f560d1a204caf205833db0850e7b4b/static/out/vs/code/browser/workbench/workbench.js:1883:3996)
at lW.setInput (http://120.48.9.239:20441/stable-912a7a9d89f560d1a204caf205833db0850e7b4b/static/out/vs/code/browser/workbench/workbench.js:1397:23911)
Beta Was this translation helpful? Give feedback.
All reactions
-
And I just learned that there are two ways to solve this problem:
a. setting up a reverse proxy;
b. adding the code server address to the browser flag management.
I want to know if there are any other ways to solve this problem?
ps: Due to certain reasons, the IP bound to the code server has to be 0.0.0.0.
Beta Was this translation helpful? Give feedback.
All reactions
-
Never expose a container/service on
0.0.0.0directly.Use a (more advanced) proxy like Træfik for your services.
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
-
HTTP only works for 127.0.0.1 / localhost
Cross references:
Beta Was this translation helpful? Give feedback.