Linux 上的 VSCode 的 Jupyter 扩展在执行任何与 Jupyter 相关的操作时会抛出错误
Jupyter extension for VSCode on Linux throws error when doing anything Jupyter related
在 Manjaro Linux 上安装 code-oss 以及代码和 jupyter-notebooks 本身的 Jupyter 扩展后,当我尝试在代码中执行任何与 Jupyter 相关的操作时,扩展似乎出错。如果我尝试从命令面板创建一个新笔记本,它会弹出一个对话框,内容如下:
Command 'Jupyter: Create New Jupyter Notebook' resulted in an error (command 'jupyter.createnewnotebook' not found)
代码然后告诉我扩展激活失败并打开 chrome 开发人员控制台以获取更多信息。这就是 chrome 控制台然后显示的内容:
extension activation failed Error: Extension 'ms-toolsai.jupyter' CANNOT use API proposal: notebookEditor. Its package.json#enabledApiProposals-property declares: but NOT notebookEditor. The missing proposal MUST be added and you must start in extension development mode or use the following command line switch: --enable-proposed-api ms-toolsai.jupyter
Initial Pop-up error
Chrome Console error
您可以通过在 vs code 的启动设置中插入"enable-proposed-api": ["ms-toolsai.jupyter"]
来解决该问题。所以按 CTRL+ALT+P -> "Preference: Configure Runtime Arguments" 然后插入上一行。重启后 vscode.
在 Manjaro Linux 上安装 code-oss 以及代码和 jupyter-notebooks 本身的 Jupyter 扩展后,当我尝试在代码中执行任何与 Jupyter 相关的操作时,扩展似乎出错。如果我尝试从命令面板创建一个新笔记本,它会弹出一个对话框,内容如下:
Command 'Jupyter: Create New Jupyter Notebook' resulted in an error (command 'jupyter.createnewnotebook' not found)
代码然后告诉我扩展激活失败并打开 chrome 开发人员控制台以获取更多信息。这就是 chrome 控制台然后显示的内容:
extension activation failed Error: Extension 'ms-toolsai.jupyter' CANNOT use API proposal: notebookEditor. Its package.json#enabledApiProposals-property declares: but NOT notebookEditor. The missing proposal MUST be added and you must start in extension development mode or use the following command line switch: --enable-proposed-api ms-toolsai.jupyter
Initial Pop-up error Chrome Console error
您可以通过在 vs code 的启动设置中插入"enable-proposed-api": ["ms-toolsai.jupyter"]
来解决该问题。所以按 CTRL+ALT+P -> "Preference: Configure Runtime Arguments" 然后插入上一行。重启后 vscode.