无法在VSCode中打开Jupyter Notebook [英] Can't open jupyter notebook in VSCode
问题描述
也许是一个愚蠢的问题,但是我最近切换到了适用于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
软件包,如
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:
- 按 Ctrl + Shift + P
- 类型:将当前的Python文件导出为Jupyter Notebook
- Press Ctrl+Shift+P
- Type: Export Current Python File as Jupyter Notebook
这篇关于无法在VSCode中打开Jupyter Notebook的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!