簡體   English   中英

代碼OSS不執行Jupyter notebook

[英]Code OSS does not execute Jupyter notebook

在我的 Arch 系統上,我安裝了 jupyter-notebook 6.4.4 版和 Code - OSS 1.61.0 版。 帶有 Python (v2021.9.1246542782) 擴展和 Jupyter (v2021.9.100) 擴展。

當我嘗試打開.ipynb文件時,程序返回以下消息:

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

並且不會執行筆記本。

如果我隨后切換開發人員工具,我會發現一系列錯誤的形式:

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

任何建議表示贊賞。

您可以使用命令code --enable-proposed-api ms-toolsai.jupyter啟動代碼 oss。

它在 oss 1.66 中工作

遇到同樣的問題,我找到的唯一解決方法是刪除 Code - OSS 並從 AUR 安裝 Microsoft 品牌版本( https://aur.archlinux.org/packages/visual-studio-code-bin/

我從 Pacman 安裝了代碼 1.61.0 ==> 沒有工作。

版本:1.61.0 提交:ee8c7def80afc00dd6e593ef12f37756d8f504ea 日期:2021-10-10T18:20:55.439Z Electron:13.5.2 Chrome:91.0.44Node.16.1.0.0.44472.16.1.0.0.44472.1.0.0 5.14.12-arch1-1

然后從 aur ==> 安裝代碼 1.61.2 有效。

版本:1.61.2 提交:6cba118ac49a1b88332f312a8f67186f7f3c1643 日期:2021-10-19T14:58:13.605Z Electron: 13.5.1 Chrome: 91.016.164.04.04.04.04.16.164 5.14.12-arch1-1

這個問題應該在 Code - OSS 版本 1.62 中得到修復,現在可以在官方 Arch 存儲庫中找到。

我有同樣的問題。 我剛剛將我的代碼升級到 1.62,對錯誤沒有任何影響......

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM