google-colaboratory - colab notebook如何自动生成目录?

标签 google-colaboratory

请注意,我不需要 numbered TOC,任何旧的自动生成的目录都会很棒。

背景

我面临的问题是我有一个很长的笔记本,上面有许多顶级 # ..,第二个 ## .. 和第三个 ## .. 级别标题,所以有点迷宫。如果有一种自动生成目录的方法(类似于用google docs自动生成目录的方式),那将是非常方便的。这在colab中可能吗?我的目标是避免手动编写,原因有两个:效率和准确性(我可能会出错)。

我尝试了什么

我尝试了显而易见的方法(查看“插入”,就像使用 google 文档一样),但没有成功:

enter image description here

有什么想法吗?

最佳答案

左侧带有三个点/线的图标提供自动生成的目录。

点击此处:

enter image description here



它会在旁边显示一个目录:

enter image description here

关于google-colaboratory - colab notebook如何自动生成目录?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67458990/

相关文章:

python - 使用 Google Sheets 触发位于 Google Drive 中的 Python 脚本

matplotlib - 如何在 Google Colab 中使用 matplotlib 绘制交互式可绘制图像?

environment-variables - 在 Google Colab 中设置永久环境变量

opencv - 在谷歌colab上以视频形式显示帧

jupyter-notebook - 如何在 Google Colab 中打开文本文件

python - Google Colab 中的 Keras 调谐器和 TPU

pandas - Colab : Could not find a version that satisfies the requirement pandas==1. 4.1

python - 无法将大小为 47040000 的数组 reshape 为预训练神经网络的形状 (60000,32,32,1)

python - 来自 "ImportError: cannot import name ' 的变压器 : Error importing packages. 'torch.optim.lr_scheduler' SAVE_STATE_WARNING'

file - 如何将 .npy 文件作为 numpy 数组加载到 Google Colab 上的虚拟机中