Wor*_*ard 6 visual-studio-code jupyter-notebook
在 Manjaro Linux 上安装 code-oss 以及代码的 Jupyter 扩展和 jupyter-notebooks 本身后,当我尝试在代码内执行任何与 Jupyter 相关的操作时,该扩展似乎会出错。如果我尝试从命令面板创建一个新笔记本,它会弹出一个对话框,内容如下:
Command 'Jupyter: Create New Jupyter Notebook' resulted in an error (command 'jupyter.createnewnotebook' not found)
Run Code Online (Sandbox Code Playgroud)
然后代码告诉我扩展激活失败并打开 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
Run Code Online (Sandbox Code Playgroud)
小智 17
"enable-proposed-api": ["ms-toolsai.jupyter"]您可以通过在 VS Code 的启动设置中插入来解决该问题。因此,按 CTRL+ALT+P ->“首选项:配置运行时参数”,然后插入上面一行。之后重启vscode。
| 归档时间: |
|
| 查看次数: |
6866 次 |
| 最近记录: |