简体   繁体   English

python内核与vscode的连接

[英]python kernel connection with vscode

I'm working in an ubuntu machine.我在 ubuntu 机器上工作。 And I download jupyter and python extensions in vscode.我在 vscode 中下载了 jupyter 和 python 扩展。 But when I want to run any code in jupternotebook It doesn't run and I can't open the .ipynb files.但是当我想在 jupternotebook 中运行任何代码时它不会运行并且我无法打开 .ipynb 文件。 Vscode show the following error: vscode 显示以下错误:

PD: I haven't install anaconda due I want to use the python kernel installed previously and not use python kernel of anaconda. PD:我没有安装anaconda,因为我想使用之前安装的python内核而不是使用anaconda的python内核。

error错误

vscode vscode

It looks like there are some issues with Jupyter Extension.看起来 Jupyter 扩展存在一些问题。 Could you try these?你能试试这些吗?

  1. Install another version of Jupyter NoteBook, Downgrade or Upgrade it and then restart it.安装另一个版本的 Jupyter NoteBook,将其降级或升级,然后重新启动它。
  2. Avoid running the VSCode as admin.避免以管理员身份运行 VSCode。

You can refer to this page and this page for more details你可以参考这个页面和这个页面了解更多详情

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM