LoginSignup
20
23

More than 5 years have passed since last update.

IPython notebookで目次をつくる

Last updated at Posted at 2014-08-29

目的

こんな感じでIPython notebookの先頭に目次(Table of contents)をつくりたい

ipython_links_ex.png

(注: 画像はこちらから頂きました)

やり方

このライブラリを使って作成できます.

次の3行をMarkdown cellに貼り付けるだけです.
Header cellを自動で取得して,目次を書いてくれます.

<h1 id="tocheading">Table of Contents</h1>
<div id="toc"></div>
<script src="https://kmahelona.github.io/ipython_notebook_goodies/ipython_notebook_toc.js"></script>
20
23
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
20
23