本文介绍了如何在Jupyter Lab的“将笔记本导出为..."菜单上获得“将笔记本导出到Html_toc"选项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
- 如何在Jupyter实验室的
Export Notebook As...
菜单中启用所有jupyter nbconvert
导出选项?- 具体来说,如何在菜单上获得
Export Notebook to Html_toc
的选项?
- How can all of the
jupyter nbconvert
export options be enabled from theExport Notebook As...
menu in Jupyter lab?- Specifically, how can I get the option to
Export Notebook to Html_toc
on the menu?
推荐答案
- 此答案是回旋黑客,用于在Jupyter Lab中启用完整菜单
- 在这种情况下,我有一个干净的Anaconda安装,其中包括Jupyter Lab和Jupyter Notebook.
- 进入Jupyter Lab之后,只有最小的导出"选项可用.
- 转到Jupyter Lab中的扩展管理器并安装
@jupyterlab/toc
- 这将为
\\Anaconda3\\lib\\site-packages\\jupyter_contrib_nbextensions\\nbextensions\\
安装许多扩展 - 指南中有
pip
个安装选项,但是我没有尝试手动安装Jupyter Lab和Jupyter Notebook - This will install a number of extensions to
\\Anaconda3\\lib\\site-packages\\jupyter_contrib_nbextensions\\nbextensions\\
- There are
pip
install options in the guide, but I haven't tried this for a manual installation of Jupyter Lab and Jupyter Notebook - 在加载Jupyter Notebook环境期间,出现以下警告
[jupyter_nbextensions_configurator] nbextension '...' has duplicate listings
. - 如上所述,一个位置是
\\Anaconda3\\...
,另一个位置是\\Users\\...\\AppData\\\Roaming\\jupyter\\nbextensions\\...
- 这可能是因为我以前安装了Anaconda,但我通过将
\\Users\\...\\AppData\\\Roaming\\jupyter\\nbextensions\\...
重命名为\\Users\\...\\AppData\\\Roaming\\jupyter\\nbextensions_old\\...
来解决了此问题. - During loading of the Jupyter Notebook environment, there where warnings as follows
[jupyter_nbextensions_configurator] nbextension '...' has duplicate listings
. - One location was
\\Anaconda3\\...
, as mentioned above, and the other was\\Users\\...\\AppData\\\Roaming\\jupyter\\nbextensions\\...
- This could be because I had a previous installation of Anaconda, but I resolved this issue by renaming
\\Users\\...\\AppData\\\Roaming\\jupyter\\nbextensions\\...
to\\Users\\...\\AppData\\\Roaming\\jupyter\\nbextensions_old\\...
- 包括,尤其是
Export Notebook to Html_toc
- 这是HTML笔记本的示例,其中包含Jupyter Lab输出的目录.请参阅DataCamp笔记本.
- Here are examples of HTML notebooks with a Table of Contents output from Jupyter Lab. See the DataCamp notebooks.
示例
Examples
这篇关于如何在Jupyter Lab的“将笔记本导出为..."菜单上获得“将笔记本导出到Html_toc"选项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
- Specifically, how can I get the option to
- 具体来说,如何在菜单上获得