Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Code OSS does not execute Jupyter notebook

On my Arch system I have installed jupyter-notebook version 6.4.4 and Code - OSS version 1.61.0. with Python (v2021.9.1246542782) extension and with Jupyter (v2021.9.100) extension.

When I try to open a .ipynb file the program returns the following message:

Extension activation failed, run the 'Developer: Toggle Developer Tools' command for more information.

and will not execute the notebook.

If I then toggle the developer tools, what I find is a series of errors of the form:

Error: Unable to read file '/usr/lib/code/extensions/markdown-language-features/notebook-out/index.js' (Error: Unable to resolve nonexistent file '/usr/lib/code/extensions/markdown-language-features/notebook-out/index.js')

GET https://file+.vscode-resource.vscode-webview.net/usr/lib/code/extensions/markdown-language-features/notebook-out/index.js net::ERR_ABORTED 404

Uncaught (in promise) TypeError: Failed to fetch dynamically imported module: https://file+.vscode-resource.vscode-webview.net/usr/lib/code/extensions/markdown-language-features/notebook-out/index.js

Uncaught (in promise) TypeError: Failed to fetch dynamically imported module: https://file+.vscode-resource.vscode-webview.net/usr/lib/code/extensions/markdown-language-features/notebook-out/index.js

Any suggestion is appreciated.

like image 965
Daniele Dimonte Avatar asked Sep 05 '25 04:09

Daniele Dimonte


2 Answers

you can startup code oss with comand code --enable-proposed-api ms-toolsai.jupyter .

it work in oss 1.66

like image 198
hongw Avatar answered Sep 07 '25 21:09

hongw


having the same issue, the only fix I find was to remove Code - OSS and install Microsoft branded version from AUR (https://aur.archlinux.org/packages/visual-studio-code-bin/)

like image 27
Lucho Avatar answered Sep 07 '25 20:09

Lucho