[Bug]: Jupyter Notebook not working
See original GitHub issueIs there an existing issue for this?
- I have searched the existing issues
OS/Web Information
- Web Browser: Chrome
- Local OS: Any
- Remote OS: Docker (Unraid OS)
- Remote Architecture: AMD x64
- `code-server --version`: 4.0.1
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]:
(node:11546) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.(Use `node --trace-deprecation ...` to show where the warning was created)
…
mainThreadExtensionService.ts:95 Activating extension 'vscode.ipynb' failed: Cannot find module '/usr/local/share/.config/yarn/global/node_modules/code-server/vendor/modules/code-oss-dev/extensions/ipynb/dist/ipynbMain.js'
Require stack:
- /usr/local/share/.config/yarn/global/node_modules/code-server/vendor/modules/code-oss-dev/out/vs/loader.js
- /usr/local/share/.config/yarn/global/node_modules/code-server/vendor/modules/code-oss-dev/out/bootstrap-amd.js
- /usr/local/share/.config/yarn/global/node_modules/code-server/vendor/modules/code-oss-dev/out/bootstrap-fork.js.
…
CRITI FAILED to destory notebook Error: NO provider registered for view type: 'jupyter-notebook'
at O.withNotebookDataProvider (notebookServiceImpl.ts:611:10)
at async u.createReferencedObject (notebookEditorModelResolverServiceImpl.ts:64:16)
at async a.resolve (notebookEditorModelResolverServiceImpl.ts:216:18)
at async l.$tryCreateNotebook (mainThreadNotebookDocuments.ts:131:15)
[Notebook Opening]:
mainThreadExtensionService.ts:95 Activating extension 'vscode.ipynb' failed: Cannot find module '/usr/local/share/.config/yarn/global/node_modules/code-server/vendor/modules/code-oss-dev/extensions/ipynb/dist/ipynbMain.js'
Require stack:
- /usr/local/share/.config/yarn/global/node_modules/code-server/vendor/modules/code-oss-dev/out/vs/loader.js
- /usr/local/share/.config/yarn/global/node_modules/code-server/vendor/modules/code-oss-dev/out/bootstrap-amd.js
- /usr/local/share/.config/yarn/global/node_modules/code-server/vendor/modules/code-oss-dev/out/bootstrap-fork.js.
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?
- I cannot reproduce this in VS Code.
Are you accessing code-server over HTTPS?
- I am using 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:
- Python 3.8.10
- Miniconda 3.9.5 Same errors in both cases
Nginx reverse proxy is used to access code-server
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:31 (11 by maintainers)

Top Related StackOverflow Question
Yeah, just tried install script on ubuntu machine (so no Docker, just plain
code-server) and there is no problem whatsoever. At this point I’m pretty confident this is somehow related tolinuxserver/code-serverimage. I’ll wait for a feedback from @jsjoeio and than close this issue and open a new one in linuxserver repo. Thank for your help 😊@benz0li I will ask my admin if they can do the tls termination up front. I will update the progress in this issue! Thanks for your help 🙏 🙏