agalea91 / ipython_notebook_goodies

Random goodies for use in iPython Notebooks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ipython_notebook_goodies

Random goodies for use in iPython Notebooks. Tested with the latest iPython Notebook 3.2.0

  1. Table of Contents

Make a table of contents for your notebook. Uses headings (e.g. H1, H2, etc.) to build TOC, and provides anchors (added where needed).

Usage:

  1. Add a markdown cell at the top of your notebook with the following:
<h1 id="tocheading">Table of Contents</h1>
<div id="toc"></div>
  1. Add a code cell anywhere in the notebook with the following:
%%javascript
$.getScript('https://rawgit.com/agalea91/ipython_notebook_goodies/gh-pages/ipython_notebook_toc.js')

About

Random goodies for use in iPython Notebooks


Languages

Language:CSS 63.6%Language:HTML 20.6%Language:JavaScript 15.8%