【问题标题】:Code OSS does not execute Jupyter notebook代码OSS不执行Jupyter notebook
【发布时间】:2021-11-30 02:06:00
【问题描述】:

在我的 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

欢迎提出任何建议。

【问题讨论】:

    标签: python linux visual-studio-code jupyter-notebook vscode-extensions


    【解决方案1】:

    此问题应在 Code - OSS 版本 1.62 中修复,现已在 Arch 官方存储库中提供。

    【讨论】:

      【解决方案2】:

      我从 Pacman 安装了代码 1.61.0 ==> 没有工作。

      版本:1.61.0 提交:ee8c7def80afc00dd6e593ef12f37756d8f504ea 日期:2021-10-10T18:20:55.439Z 电子:13.5.2 铬:91.0.4472.164 Node.js:14.16.0 V8:9.1.269.39-electron.0 操作系统:Linux x64 5.14.12-arch1-1

      然后从 aur ==> 安装代码 1.61.2 即可。

      版本:1.61.2 提交:6cba118ac49a1b88332f312a8f67186f7f3c1643 日期:2021-10-19T14:58:13.605Z 电子:13.5.1 铬:91.0.4472.164 Node.js:14.16.0 V8:9.1.269.39-electron.0 操作系统:Linux x64 5.14.12-arch1-1

      【讨论】:

        【解决方案3】:

        遇到同样的问题,我找到的唯一解决方法是删除 Code - OSS 并从 AUR (https://aur.archlinux.org/packages/visual-studio-code-bin/) 安装 Microsoft 品牌版本

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 2018-08-31
          • 1970-01-01
          • 1970-01-01
          • 2023-01-10
          • 2020-12-01
          • 1970-01-01
          • 2017-11-26
          • 1970-01-01
          相关资源
          最近更新 更多