question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug]: Jupyter Notebook not working

See original GitHub issue

Is 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]: image

[Notebook Opening]: image


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) image

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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:31 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
vdallavallecommented, Jan 28, 2022

@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 code-server) and there is no problem whatsoever. At this point I’m pretty confident this is somehow related to linuxserver/code-server image. 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 😊

2reactions
crissed53commented, Jan 28, 2022

@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 🙏 🙏

Read more comments on GitHub >

github_iconTop Results From Across the Web

What to do when things go wrong - The Jupyter Notebook
First, have a look at the common problems listed below. ... If Jupyter gives an error that it can't find notebook , check...
Read more >
How to Fix Kernel Error in Jupyter Notebook
A kernel error occurs basically when you try opening a python 3 file in the wrong directory. The truth is Jupyter and Python...
Read more >
Jupyter notebook browser page not loading
Hello, I have been using Jupyter Notebook successfully for a long time, but today I have encountered a strange problem. Running on windows...
Read more >
Jupyter notebook not running code. Stuck on In [*]
This means that Jupyter is still running the kernel. It is possible that you are running an infinite loop within the kernel and...
Read more >
How to fix Kernel Error or broken Python in Jupyter Notebook
TL;DW BELOW! If you delete or upgrade your python version, you might get a Kernel Error when trying to use Jupyter Notebooks !...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found