无法在 VSCode 中打开 jupyter notebook [英] Cannot open jupyter notebook in VSCode

查看:107
本文介绍了无法在 VSCode 中打开 jupyter notebook的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近切换到 Visual Studio Code 并想使用 Jupyter Notebooks.我已经安装了 ms-python 扩展,以及 jupyter 包,如 此处.

I recently switched to Visual Studio Code and would like to use Jupyter Notebooks. I have installed the ms-python extension, and also the jupyter package, as described here.

但是,在重新加载后,我没有命令 Python: Create Blank New Jupyter Notebook,如果我打开现有的笔记本,将显示 HTML/CSS 而不是实际的笔记本视图.我还没有在网上找到与此问题相关的任何内容.

However, after reloading, I did not have a command Python: Create Blank New Jupyter Notebook, and if I open existing notebooks, the HTML/CSS is shown instead of an actual notebook view. I haven't found anything related to this problem online yet.

推荐答案

如果 Python 扩展可用,(如果没有安装该扩展)在 VSCode 中,而 jupyter 样式文件(以 # %% 开头的单元格)处于活动状态:

If Python extension is available, (if not install that extension) in VSCode, while the jupyter style file (cells beginning with # %%) is active:

  1. Ctrl+Shift+P
  2. 类型:将当前 Python 文件导出为 Jupyter Notebook

这篇关于无法在 VSCode 中打开 jupyter notebook的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆