VSCode:Jupyter-won';t导出为Python脚本
我不想对VSCode及其创建的分散的子文件夹感到太失望,但我对这一点非常恼火: 在VSCode中从Jupyter笔记本导出的说明很简单——点击“导出为”,然后选择“Python脚本”。我得到的错误是:“导出失败。请检查“Python”输出面板以了解更多详细信息。” 输出面板包括以下内容:VSCode:Jupyter-won';t导出为Python脚本,python,visual-studio-code,jupyter-notebook,Python,Visual Studio Code,Jupyter Notebook,我不想对VSCode及其创建的分散的子文件夹感到太失望,但我对这一点非常恼火: 在VSCode中从Jupyter笔记本导出的说明很简单——点击“导出为”,然后选择“Python脚本”。我得到的错误是:“导出失败。请检查“Python”输出面板以了解更多详细信息。” 输出面板包括以下内容: raise ValueError('No template sub-directory with name %r found in the following paths:\n\t%s' % (base
raise ValueError('No template sub-directory with name %r found in the following paths:\n\t%s' % (base_template, paths))
ValueError: No template sub-directory with name 'python' found in the following paths:
C:\Users\dures\AppData\Roaming\jupyter
c:\program files (x86)\python\share\jupyter
C:\ProgramData\jupyter
我已经创建了相关的子目录,但我不知道如何创建“模板子目录”
更一般地说,有没有更好的方法来确保我想在VSCode中使用的所有内容都在相同的位置和路径上?检查并确认您正在使用Python 3.7及更高版本。请参见下图 您可能正在运行Python 3或不受支持的更低版本
安装这些库,然后重试:
%pip install nbconvert
%pip install pandoc
%pip install pyppeteer
由于VSCode中的Jupyter notebook函数是由Python扩展提供的,因此建议您尝试使用最新版本的Python扩展或使用其他版本的Python扩展并重新加载VSCode。