coder / code-server

VS Code in the browser
https://coder.com
MIT License
68.52k stars 5.61k forks source link

[Bug]: Jupyter not working with this version of code-server #5178

Closed camelator closed 4 months ago

camelator commented 2 years ago

Is there an existing issue for this?

OS/Web Information

Steps to Reproduce

  1. install the latest python plugin 3.Check Jupyter Version and try to upgrade to the latest 4

Expected

I expect to be able to install the latests versions of plugins.

Actual

Unfortunately, Code-server propose several versions to install but the latest is not available (at least 2022.4.xx) => Jupyter can not be used as there is a bug on the previous versions at python kernel initialisation

Logs

No response

Screenshot/Video

No response

Does this issue happen in VS Code?

Are you accessing code-server over HTTPS?

Notes

This bug does not happen with the standard vs code : the latest plugins are available

jsjoeio commented 2 years ago

Unfortunately, Code-server propose several versions to install but the latest is not available (at least 2022.4.xx) => Jupyter can not be used as there is a bug on the previous versions at python kernel initialisation

code-server uses the Open VSX marketplace so if the version you want isn't available then it isn't available in Open VSX.

When I install the Python extension, it installs v2022.4.1 and Jupyter v2022.3.1000752054 and it appears to be working.

image

Unless I'm missing something else, I don't think there is much we can do about this.

Gorluxor commented 2 years ago

I had the same issue on the 2022.4.1, to resolve it just install previous version, In this case 2022.2.19....

camelator commented 2 years ago

Definitely, it does not work. for plugin Python, according to this page https://open-vsx.org/extension/ms-python/python/changes the last version looks like 2022.6.1 and I can only install 2022.4.1 And what is strange, after installing last Python version, the jupyter version looks like the latest. But trying to create a new notebook enters in an infinite loop and the jupyter version downgraded to the previous one that I suspect having bug running python kernel.

Here is maybe interesting log I don't have by connecting to the container with a remote code-studio instead of code-server

[2022-05-11 08:40:05.972] [remoteagent] [info] Extension host agent started. [2022-05-11 08:40:07.746] [remoteagent] [info] [192.168.31.195][de2aaf3c][ManagementConnection] New connection established. [2022-05-11 08:40:21.105] [remoteagent] [info] [192.168.31.195][773d91eb][ExtensionHostConnection] New connection established. [2022-05-11 08:40:21.178] [remoteagent] [info] [192.168.31.195][773d91eb][ExtensionHostConnection] <73> Launched Extension Host Process. [2022-05-11 08:40:27.962] [remoteagent] [warning] Using the in-memory credential store as the operating system's credential store could not be accessed. Please see https://aka.ms/vscode-server-keyring on how to set this up. Details: Cannot find module '../build/Release/keytar.node' Require stack:

[2022-05-11 08:49:12.493] [remoteagent] [info] Uninstalling extension: ms-python.python [2022-05-11 08:49:12.752] [remoteagent] [info] Uninstalling extension: ms-toolsai.jupyter [2022-05-11 08:49:12.754] [remoteagent] [info] Uninstalling extension: ms-toolsai.jupyter-keymap [2022-05-11 08:49:12.755] [remoteagent] [info] Uninstalling extension: ms-toolsai.jupyter-renderers [2022-05-11 08:49:13.462] [remoteagent] [info] Detected extension removed from another source ms-python.python [2022-05-11 08:49:13.462] [remoteagent] [info] Detected extension removed from another source ms-toolsai.jupyter [2022-05-11 08:49:13.462] [remoteagent] [info] Detected extension removed from another source ms-toolsai.jupyter-keymap [2022-05-11 08:49:13.463] [remoteagent] [info] Detected extension removed from another source ms-toolsai.jupyter-renderers [2022-05-11 08:49:13.592] [remoteagent] [info] Successfully uninstalled extension: ms-python.python [2022-05-11 08:49:13.608] [remoteagent] [info] Successfully uninstalled extension: ms-toolsai.jupyter [2022-05-11 08:49:13.631] [remoteagent] [info] Successfully uninstalled extension: ms-toolsai.jupyter-keymap [2022-05-11 08:49:13.648] [remoteagent] [info] Successfully uninstalled extension: ms-toolsai.jupyter-renderers [2022-05-11 08:49:21.367] [remoteagent] [info] [192.168.31.195][de2aaf3c][ManagementConnection] The client has disconnected gracefully, so the connection will be disposed. [2022-05-11 08:49:21.645] [remoteagent] [info] [192.168.31.195][773d91eb][ExtensionHostConnection] <73> Extension Host Process exited with code: 0, signal: null. [2022-05-11 08:49:22.654] [remoteagent] [info] [192.168.31.195][e80dc404][ManagementConnection] New connection established. [2022-05-11 08:49:24.424] [remoteagent] [info] [192.168.31.195][cb397483][ExtensionHostConnection] New connection established. [2022-05-11 08:49:24.576] [remoteagent] [info] [192.168.31.195][cb397483][ExtensionHostConnection] <162> Launched Extension Host Process. [2022-05-11 08:50:22.431] [remoteagent] [info] Getting Manifest... ms-python.python [2022-05-11 08:50:23.054] [remoteagent] [info] Installing extension: ms-python.python [2022-05-11 08:50:24.073] [remoteagent] [info] Getting Manifest... ms-toolsai.jupyter [2022-05-11 08:50:25.053] [remoteagent] [info] Getting Manifest... ms-toolsai.jupyter-renderers [2022-05-11 08:50:25.524] [remoteagent] [info] Getting Manifest... ms-toolsai.jupyter-keymap [2022-05-11 08:50:26.229] [remoteagent] [info] Installing extension: ms-toolsai.jupyter [2022-05-11 08:50:26.230] [remoteagent] [info] Installing extension: ms-toolsai.jupyter-renderers [2022-05-11 08:50:26.231] [remoteagent] [info] Installing extension: ms-toolsai.jupyter-keymap [2022-05-11 08:50:26.961] [remoteagent] [info] Downloaded extension: ms-toolsai.jupyter /root/.local/share/code-server/CachedExtensionVSIXs/ms-toolsai.jupyter-2022.3.1000901801 [2022-05-11 08:50:26.962] [remoteagent] [info] Downloaded extension: ms-toolsai.jupyter-renderers /root/.local/share/code-server/CachedExtensionVSIXs/ms-toolsai.jupyter-renderers-1.0.6 [2022-05-11 08:50:26.963] [remoteagent] [info] Downloaded extension: ms-toolsai.jupyter-keymap /root/.local/share/code-server/CachedExtensionVSIXs/ms-toolsai.jupyter-keymap-1.0.0 [2022-05-11 08:50:27.117] [remoteagent] [info] Removed the extension from uninstalled list: ms-toolsai.jupyter-keymap [2022-05-11 08:50:27.313] [remoteagent] [info] Removed the extension from uninstalled list: ms-toolsai.jupyter-renderers [2022-05-11 08:50:27.739] [remoteagent] [info] Removed the extension from uninstalled list: ms-toolsai.jupyter [2022-05-11 08:50:28.024] [remoteagent] [info] Downloaded extension: ms-python.python /root/.local/share/code-server/CachedExtensionVSIXs/ms-python.python-2022.4.1 [2022-05-11 08:50:28.088] [remoteagent] [info] Removed the extension from uninstalled list: ms-python.python [2022-05-11 08:50:28.098] [remoteagent] [info] Extension installed successfully: ms-toolsai.jupyter-keymap [2022-05-11 08:50:28.098] [remoteagent] [info] Extension installed successfully: ms-toolsai.jupyter-renderers [2022-05-11 08:50:28.098] [remoteagent] [info] Extension installed successfully: ms-toolsai.jupyter [2022-05-11 08:50:28.098] [remoteagent] [info] Extension installed successfully: ms-python.python [2022-05-11 08:58:29.518] [remoteagent] [info] [192.168.31.195][e80dc404][ManagementConnection] The client has disconnected gracefully, so the connection will be disposed. [2022-05-11 08:58:29.743] [remoteagent] [info] [192.168.31.195][cb397483][ExtensionHostConnection] <162> Extension Host Process exited with code: 0, signal: null. [2022-05-11 08:58:30.860] [remoteagent] [info] [192.168.31.195][6b4e337a][ManagementConnection] New connection established. [2022-05-11 08:58:32.773] [remoteagent] [info] [192.168.31.195][8f449caa][ExtensionHostConnection] New connection established. [2022-05-11 08:58:32.810] [remoteagent] [info] [192.168.31.195][8f449caa][ExtensionHostConnection] <256> Launched Extension Host Process.

and here is the log with the remote code-studio

[2022-05-11 09:04:57.560] [remoteagent] [info] Extension host agent started. [2022-05-11 09:04:58.367] [remoteagent] [debug] ComputeTargetPlatform: linux-arm64 [2022-05-11 09:04:58.429] [remoteagent] [info] [127.0.0.1][6aa7bfa3][ManagementConnection] New connection established. [2022-05-11 09:04:59.155] [remoteagent] [info] [127.0.0.1][fef1d43a][ExtensionHostConnection] New connection established. [2022-05-11 09:04:59.176] [remoteagent] [info] [127.0.0.1][fef1d43a][ExtensionHostConnection] <659> Launched Extension Host Process. [2022-05-11 09:05:02.902] [remoteagent] [info] Getting Manifest... ms-python.python [2022-05-11 09:05:02.952] [remoteagent] [info] Installing extension: ms-python.python [2022-05-11 09:05:04.806] [remoteagent] [info] Downloaded extension: ms-python.python /root/.vscode-server/extensionsCache/ms-python.python-2022.6.1 [2022-05-11 09:05:18.139] [remoteagent] [info] [127.0.0.1][fef1d43a][ExtensionHostConnection] <659> Starting WebSocket: RAW/api/kernels/628168db-ca54-4a91-a231-6ca2cc1ca51c

[2022-05-11 09:05:21.424] [remoteagent] [info] Extracted extension to /root/.vscode-server/extensions/.90f26c2e-90f8-41e7-9b80-724652486777: ms-python.python [2022-05-11 09:05:21.452] [remoteagent] [info] Renamed to /root/.vscode-server/extensions/ms-python.python-2022.6.1 [2022-05-11 09:05:21.470] [remoteagent] [info] Extracting completed. ms-python.python [2022-05-11 09:05:21.483] [remoteagent] [info] Extension installed successfully: ms-python.python

jsjoeio commented 2 years ago

Based on this, I assume the version you're trying to install requires a newer version of VS Code. I don't think it will work because of that. Once we upgrade VS Code in code-server and cut a release, then it will work. Until then, you should use an older version like the one I showed working.

camelator commented 2 years ago

I just repeat the issue on a jetson-nano with a container. From a remote PC, I can open a studio code session and create a new jupyter note book. The server offer me to install plugin and other required packages, and then I can successfully create a notebook.

With the code-server installed inside the image, after having installed the required plugins, here are the errors:

`Experiment 'pythonaa' is active Experiment 'pythonTensorboardExperiment' is active Experiment 'PythonPyTorchProfiler' is active Experiment 'pythonDeprecatePythonPath' is active Experiment 'pythonInterpreterInfoPinned' is active

conda info --json /usr/bin/python3 ./.local/share/code-server/extensions/ms-python.python-2022.4.1/pythonFiles/get_output_via_markers.py ./.local/share/code-server/extensions/ms-python.python-2022.4.1/pythonFiles/interpreterInfo.py /usr/bin/python ./.local/share/code-server/extensions/ms-python.python-2022.4.1/pythonFiles/get_output_via_markers.py ./.local/share/code-server/extensions/ms-python.python-2022.4.1/pythonFiles/interpreterInfo.py /usr/include/python3.6 ./.local/share/code-server/extensions/ms-python.python-2022.4.1/pythonFiles/get_output_via_markers.py ./.local/share/code-server/extensions/ms-python.python-2022.4.1/pythonFiles/interpreterInfo.py Python interpreter path: /usr/bin/python3 [ERROR 2022-4-24 16:6:35.736]: [Error: Command failed: /usr/include/python3.6 /root/.local/share/code-server/extensions/ms-python.python-2022.4.1/pythonFiles/get_output_via_markers.py /root/.local/share/code-server/extensions/ms-python.python-2022.4.1/pythonFiles/interpreterInfo.py /bin/sh: 1: /usr/include/python3.6: Permission denied

at ChildProcess.exithandler (node:child_process:397:12)
at ChildProcess.emit (node:events:390:28)
at maybeClose (node:internal/child_process:1064:16)
at Socket.<anonymous> (node:internal/child_process:450:11)
at Socket.emit (node:events:390:28)
at Pipe.<anonymous> (node:net:687:12)] {

killed: false, code: 126, signal: null, cmd: '/usr/include/python3.6 /root/.local/share/code-server/extensions/ms-python.python-2022.4.1/pythonFiles/get_output_via_markers.py /root/.local/share/code-server/extensions/ms-python.python-2022.4.1/pythonFiles/interpreterInfo.py' } Starting Jedi language server.

'Failed to start language server, Class name = r, completed in 4439ms, has a falsy return value, Arg 1: <Uri:/root>, Arg 2: {"id":"/usr/bin/python3","sysPrefix":"/usr","envType":"Global","envName":"","envPath":"","path":"/usr/bin/python3","architecture":3,"sysVersion":"3.6.9 (default, Mar 15 2022, 13:55:28) \n[GCC 8.4.0]","version":{"raw":"3.6.9","major":3,"minor":6,"patch":9,"build":[],"prerelease":["final","0"]},"displayName":"Python 3.6.9 64-bit","detailedDisplayName":"Python 3.6.9 64-bit"}, Arg 3: {"documentSelector":[{"scheme":"file","language":"python"},{"scheme":"untitled","language":"python"},{"scheme":"vscode-notebook","language":"python"},{"scheme":"vscode-notebook-cell","language":"python"},{"scheme":"vscode-interactive-input","language":"python"}],"workspaceFolder":{"uri":{"$mid":1,"fsPath":"/root","external":"file:///root","path":"/root","scheme":"file"},"name":"root","index":0},"synchronize":{"configurationSection":"python"},"outputChannel":{"name":"Python Language Server"},"revealOutputChannelOn":4,"initializationOptions":{"markupKindPreferred":"markdown","completion":{"resolveEagerly":false,"disableSnippets":false},"diagnostics":{"enable":true,"didOpen":true,"didSave":true,"didChange":true},"workspace":{"extraPaths":["/root"],"symbols":{"maxSymbols":0}}},"middleware":{"serviceContainer":{"container":{"options":{"autoBindInjectable":false,"defaultScope":"Transient","skipBaseClassChecks":true},"id":0,"_bindingDictionary":{"_map":{}},"_snapshots":[],"_middleware":null,"parent":null,"_metadataReader":{}}},"lastCaptured":{},"nextWindow":0,"eventCount":0,"workspace":{},"connectedPromise":{"scope":null,"_resolved":false,"_rejected":false,"_promise":{}},"eventName":"JEDI_LANGUAGE_SERVER.REQUEST","notebookAddon":{}},"connectionOptions":{"cancellationStrategy":{"_sender":{"folderName":"89f0a1accacdd6e99885e71b306339bdd7a803cd3a"}}}}, Return Value: undefined', [Error: Connection to server got closed. Server will not be restarted. at S.handleConnectionClosed (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:24:156031) at S.handleConnectionClosed (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:32:10622) at t (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:24:153810) at invoke (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:24:281735) at o.fire (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:24:282496) at X (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:47:135140) at invoke (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:24:281735) at o.fire (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:24:282496) at g.fireClose (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:47:125209) at Socket. (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:47:126789) at Socket.emit (node:events:402:35) at Pipe. (node:net:687:12)] ]

'Starting language server, Class name = r, completed in 4446ms, has a falsy return value, , Return Value: undefined', [Error: Connection to server got closed. Server will not be restarted. at S.handleConnectionClosed (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:24:156031) at S.handleConnectionClosed (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:32:10622) at t (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:24:153810) at invoke (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:24:281735) at o.fire (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:24:282496) at X (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:47:135140) at invoke (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:24:281735) at o.fire (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:24:282496) at g.fireClose (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:47:125209) at Socket. (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:47:126789) at Socket.emit (node:events:402:35) at Pipe. (node:net:687:12)] ]

'Failed to start language server, Class name = r, completed in 4465ms, has a falsy return value, Arg 1: <Uri:/root>, Arg 2: {"id":"/usr/bin/python3","sysPrefix":"/usr","envType":"Global","envName":"","envPath":"","path":"/usr/bin/python3","architecture":3,"sysVersion":"3.6.9 (default, Mar 15 2022, 13:55:28) \n[GCC 8.4.0]","version":{"raw":"3.6.9","major":3,"minor":6,"patch":9,"build":[],"prerelease":["final","0"]},"displayName":"Python 3.6.9 64-bit","detailedDisplayName":"Python 3.6.9 64-bit"}, Return Value: undefined', [Error: Connection to server got closed. Server will not be restarted. at S.handleConnectionClosed (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:24:156031) at S.handleConnectionClosed (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:32:10622) at t (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:24:153810) at invoke (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:24:281735) at o.fire (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:24:282496) at X (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:47:135140) at invoke (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:24:281735) at o.fire (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:24:282496) at g.fireClose (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:47:125209) at Socket. (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:47:126789) at Socket.emit (node:events:402:35) at Pipe. (node:net:687:12)] ]

'Failed to activate language server, Class name = a, completed in 4471ms, has a falsy return value, Arg 1: <Uri:/root>, Arg 2: {"id":"/usr/bin/python3","sysPrefix":"/usr","envType":"Global","envName":"","envPath":"","path":"/usr/bin/python3","architecture":3,"sysVersion":"3.6.9 (default, Mar 15 2022, 13:55:28) \n[GCC 8.4.0]","version":{"raw":"3.6.9","major":3,"minor":6,"patch":9,"build":[],"prerelease":["final","0"]},"displayName":"Python 3.6.9 64-bit","detailedDisplayName":"Python 3.6.9 64-bit"}, Return Value: undefined', [Error: Connection to server got closed. Server will not be restarted. at S.handleConnectionClosed (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:24:156031) at S.handleConnectionClosed (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:32:10622) at t (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:24:153810) at invoke (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:24:281735) at o.fire (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:24:282496) at X (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:47:135140) at invoke (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:24:281735) at o.fire (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:24:282496) at g.fireClose (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:47:125209) at Socket. (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:47:126789) at Socket.emit (node:events:402:35) at Pipe. (node:net:687:12)] ]

'Failed to activate a workspace, Class name = f, completed in 4936ms, has a falsy return value, Arg 1: <Uri:/root>, Return Value: undefined', [Error: Connection to server got closed. Server will not be restarted. at S.handleConnectionClosed (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:24:156031) at S.handleConnectionClosed (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:32:10622) at t (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:24:153810) at invoke (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:24:281735) at o.fire (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:24:282496) at X (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:47:135140) at invoke (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:24:281735) at o.fire (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:24:282496) at g.fireClose (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:47:125209) at Socket. (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:47:126789) at Socket.emit (node:events:402:35) at Pipe. (node:net:687:12)] ] [ERROR 2022-4-24 16:6:40.307]: Failure during activation. [Error: Connection to server got closed. Server will not be restarted. at S.handleConnectionClosed (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:24:156031) at S.handleConnectionClosed (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:32:10622) at t (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:24:153810) at invoke (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:24:281735) at o.fire (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:24:282496) at X (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:47:135140) at invoke (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:24:281735) at o.fire (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:24:282496) at g.fireClose (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:47:125209) at Socket. (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:47:126789) at Socket.emit (node:events:402:35) at Pipe. (node:net:687:12)] [ERROR 2022-4-24 16:6:40.307]: sendStartupTelemetry() failed. [Error: Connection to server got closed. Server will not be restarted. at S.handleConnectionClosed (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:24:156031) at S.handleConnectionClosed (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:32:10622) at t (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:24:153810) at invoke (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:24:281735) at o.fire (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:24:282496) at X (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:47:135140) at invoke (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:24:281735) at o.fire (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:24:282496) at g.fireClose (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:47:125209) at Socket. (/root/.local/share/code-server/extensions/ms-python.python-2022.4.1/out/client/extension.js:47:126789) at Socket.emit (node:events:402:35) at Pipe. (node:net:687:12)] `

natereal commented 2 years ago

I am getting this issue with any and all versions of Jupyter/Python, and latest version of code-server

ab2dridi commented 2 years ago

Hello,

Same issue here, i'm getting this issue when trying to install Jupyter Extension

code-server --version: 4.7.1 77bbed48315a7cc275dc05a53d197197928f4b88 with Code 1.71.2 Jupyter extension version: ms-toolsai.jupyter-2022.10.1102891042.vsix

The error

Unable to install extension 'ms-toolsai.jupyter' as it is not compatible with VS Code '1.71.2'.

i tried a lot a different versions of Jupyter extension, same error

jsjoeio commented 2 years ago

It's possible they updated it to require Code 1.72.2. Older versions should work 🤔

How are you both installing the extension? CLI or via the Extensions panel inside code-server?

ab2dridi commented 2 years ago

I tried yet older versions but same thing, not working I install it using cli

jsjoeio commented 2 years ago

What happens if you try installing it via the UI i.e. inside code-server?

groldo commented 1 year ago

Hello,

i have a code-server setup: with a Dockerfile

FROM codercom/code-server:4.12.0

RUN sudo apt-get update && sudo apt-get -y install --no-install-recommends python3-venv python3-pip

RUN code-server --install-extension ms-toolsai.jupyter
RUN code-server --install-extension ms-python.python

and a compose file

version: "3"
services:
  code:
    build: .
    ports:
      - 8080:8080
code

I've tried a lot of different combinations of code extension versions. None of them gave a different result.

I have the same kind of setup but with code-server 4.0.1

FROM codercom/code-server:4.0.1
[...]

with 4.0.1 python cells gets rendered correctly, but markdown cells doesn't get rendered correctly

code-server-4.0.1

In 4.0.1 the jupyter notebook renderer extension doesn't get installed because it is not compatible with code-server, which makes me think that this issue has something to do with the jupyter notebook renderer extension

code-asher commented 1 year ago

I built and ran your Dockerfile but strangely it worked for me. Maybe somehow a browser cache issue?

ipynb

groldo commented 1 year ago

Thanks for your feedback it was quite valuable. The cache guess was a miss, but I came up with another browser, in my case a safari, which does worked. And when I was giving firefox another try I saw that uMatrix was blocking some needed domains. When I allowed access to this domains everythings worked like a charm. So I can confirm above scenario does work, at least on MacOS (intel). I will try this als on my raspberry later on.

code-asher commented 1 year ago

Ahhhh that makes sense!