VSCode fails to export jupyter notebook to html(VSCode无法将jupyter笔记本导出到html)
本文介绍了VSCode无法将jupyter笔记本导出到html的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在VSCode中有一个jupyter笔记本,我正尝试使用VSCode中的内置按钮将其导出到html,但是我一直收到此错误,指出找不到‘jupyter-nbConvereter’。
我正在使用pip,并让pip安装我能安装的任何与jupyter相关的东西:jupyter、jupyterlab、nbConvert、笔记本。
您知道可能是什么原因导致此问题吗?我正在使用Windows 10。
> C:Python38python.exe c:UsersToshiba.vscodeextensionsms-python.python-2020.9.114305pythonFilespyvsc-run-isolated.py jupyter nbconvert --version
> C:Python38python.exe c:UsersToshiba.vscodeextensionsms-python.python-2020.9.114305pythonFilespyvsc-run-isolated.py jupyter nbconvert --version
Error 2020-10-26 10:40:19: Export failed [r [Error]: Traceback (most recent call last):
File "c:UsersToshiba.vscodeextensionsms-python.python-2020.9.114305pythonFilespyvsc-run-isolated.py", line 26, in <module>
runpy.run_module(module, run_name="__main__", alter_sys=True)
File "C:Python38lib
unpy.py", line 207, in run_module
return _run_module_code(code, init_globals, run_name, mod_spec)
File "C:Python38lib
unpy.py", line 97, in _run_module_code
_run_code(code, mod_globals, init_globals,
File "C:Python38lib
unpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:UsersToshibaAppDataRoamingPythonPython38site-packagesjupyter.py", line 4, in <module>
main()
File "C:UsersToshibaAppDataRoamingPythonPython38site-packagesjupyter_corecommand.py", line 247, in main
command = _jupyter_abspath(subcommand)
File "C:UsersToshibaAppDataRoamingPythonPython38site-packagesjupyter_corecommand.py", line 133, in _jupyter_abspath
raise Exception(
Exception: Jupyter command `jupyter-nbconvert` not found.
推荐答案
pip uninstall nbconvert以管理员身份运行CMD
pip install nbconvert
我也遇到了同样的问题,按照上面的步骤解决了它。此解决方案来自this thread
这篇关于VSCode无法将jupyter笔记本导出到html的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
织梦狗教程
本文标题为:VSCode无法将jupyter笔记本导出到html
基础教程推荐
猜你喜欢
- Kivy 使用 opencv.调整图像大小 2022-01-01
- matplotlib 设置 yaxis 标签大小 2022-01-01
- 究竟什么是“容器"?在蟒蛇?(以及所有的 python 容器类型是什么?) 2022-01-01
- 在 Python 中将货币解析为数字 2022-01-01
- Python 中是否有任何支持将长字符串转储为块文字或折叠块的 yaml 库? 2022-01-01
- 比较两个文本文件以找出差异并将它们输出到新的文本文件 2022-01-01
- 在 Django Admin 中使用内联 OneToOneField 2022-01-01
- 对多索引数据帧的列进行排序 2022-01-01
- Python,确定字符串是否应转换为 Int 或 Float 2022-01-01
- kivy 应用程序中的一个简单网页作为小部件 2022-01-01
