问题描述
我在 Click Here to get github Files 中有一个 Jupyter 笔记本,我想将 percent format 添加到其中。这可能吗?
到目前为止,我已经尝试过:
- 在 UI 中编辑元数据并保存(不更新脚本)
- 将其另存为 .ipynb,编辑元数据,然后使用
jupytext --to py:percent
转换回来(不保留元数据) - 按照 nbsphinx orphan property 中的说明手动添加 YAML 标头,如下所示:
# ---
# nbsphinx:
# orphan: true
# ---
这些似乎都不起作用,因为 sphinx 仍在生成“警告:文档未包含在任何目录树中”。
解决方法
我没试过,但也许这可行:
# ---
# jupyter:
# nbsphinx:
# orphan: true
# ---