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

问题描述

也许是一个愚蠢的问题,但是我最近切换到了适用于Python和R的Visual Studio Code.

Perhaps a stupid question, but I recently switched to Visual Studio Code for Python and R.

我也想使用Jupyter Notebooks,因此我已经安装了ms-python扩展以及jupyter软件包,如此处.但是,重新加载后,我没有命令Python: Create Blank New Jupyter Notebook,如果我打开现有的笔记本,则会显示HTML/CSS而不是实际的笔记本视图.我还没有在网上找到与此问题有关的任何东西.

I would like to use Jupyter Notebooks too, so I have installed the ms-python extension, and also the jupyter package, as described here. However, after reloading, I don't 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. 按 + +
  2. 类型:将当前的Python文件导出为Jupyter Notebook
  1. Press ++
  2. Type: Export Current Python File as Jupyter Notebook

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

08-18 17:04