添加jupyter笔记本中的部分,链接到页面特定目录

发布于 2025-01-27 05:17:24 字数 312 浏览 1 评论 0原文

首先...我知道这是在文档中,我已经在文档中看到了,但是朱帕特的文档是如此可怕的装备,以至于无法相信。

我只是想添加一个“部分”,如几个单元格下面的文档中所述,因为这是我第一次使用jupyter笔记本,我不太熟悉以记住语法。这些文档专门提到了此“部分”,将添加到构建的页面级目录中,但是……我找不到我一周前读过的东西。

我花了20-30分钟浏览了他们的文档,寻找我已经发现的东西,但是他们的组织效果很差,以至于我圈出了圈子。我知道这可能是狮身人面像的东西,而不是直接的jupyter,但是如果有人瞥了一眼使用jupyter监管的人,我敢肯定这是常用的东西。任何帮助都是惊人的,谢谢!

First... I know this is in the docs, I've seen it in the docs, but Jupyter's docs are so dreadfully ill equipped it's beyond belief.

I'm just looking to add a "Section" as described in the docs below a few cells and since this is my first time using Jupyter notebooks I'm not familiar enough to remember the syntax. The docs specifically mentioned this "Section" would be added to the page level table of contents on build, but again... I can not find something I just read a week ago for the life of me.

I spent 20-30 minutes looking through their docs for something I've already found like a week ago, but they're so poorly organized it just sent me in circles. I'm aware this might be Sphinx thing rather than Jupyter directly, but if someone glances over this that uses Jupyter regulary I'm sure this a commonly used thing. Any help is phenomenal, Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

谁的年少不轻狂 2025-02-03 05:17:24

Ok, after combing Sphinx docs, Jupyter, Jupyter notebooks, and the Sphinx-Jupyter theme docs, it's in the Jupyter Book docs located here:

​:

format: jb-book
root: myintro
chapters:
- file: chapter1
  sections:
  - file: chapter1section1
- file: chapter2
  sections:
  - file: chapter2section1
  - file: chapter2section2

Ok, after combing Sphinx docs, Jupyter, Jupyter notebooks, and the Sphinx-Jupyter theme docs, it's in the Jupyter Book docs located here:

https://jupyterbook.org/en/stable/structure/sections-headers.html?highlight=Sections#how-headers-and-sections-map-onto-to-book-structure

For anyone trying to find this at a quick glance the _toc.yml file needs to be marked up like so:

format: jb-book
root: myintro
chapters:
- file: chapter1
  sections:
  - file: chapter1section1
- file: chapter2
  sections:
  - file: chapter2section1
  - file: chapter2section2
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文