Note

This documentation is for a development version. Click here for the latest stable release (v1.2.2).

Notebook tests

This page tests Jupyter notebooks rendered with nbsphinx.

Markdown cells

Sub-heading

Sub-sub-heading

Sub-sub-sub heading

Text

Inline literal: literal text

External link: https://www.nengo.ai/

Email link: bob@example.com

Bold text

Italic text

Lists

Unordered:

  • One

    • Sublist

      • This

    • Sublist

      • That

      • The other thing

  • Two

    • Sublist

  • Three

    • Sublist

Ordered:

  1. Here we go

    1. Sublist

    2. Sublist

  2. There we go

  3. Now this

Horizontal rules

You can add horizontal rules:


Blockquote

An MP3 is just a point in vector space, everyone knows that.

Math

Inline math: \(a^2 + b^2 = c^2\)

Displayed math:

\[e^{i\pi} + 1 = 0\]

Code

Code included in a Markdown cell, for illustration but not execution.

Indented over with spaces:

def f(x):
    """Docstring"""
    return x**2

With triple backticks (Github-flavored Markdown):

def f(x):
    """Docstring"""
    return x**2

Tables

Header1

Header2

Header3

Row 1

Row 1

Row 1

Row 2

Row 2

Row 2

Row 3

Row 3

Row 3

HTML

Because Markdown is a superset of HTML you do things like define tables with HTML:

Header 1

Header 2

row 1, cell 1

row 1, cell 2

row 2, cell 1

row 2, cell 2

Code cells

[1]:
%matplotlib inline
import matplotlib.pyplot as plt
import numpy as np
[2]:
print("This is a simple code cell")
This is a simple code cell
[3]:
this_cell = "Has no output"
[4]:
x = np.linspace(0, np.pi * 2)
plt.plot(x, np.sin(x))
plt.plot(x, np.cos(x))
plt.title("Matplotlib plot")
[4]:
Text(0.5, 1.0, 'Matplotlib plot')
_images/notebook_5_1.png