theme {theme} : text only

subtitle cell

text cell

  • item 1
  • item 2

theme {theme} : code cells


In [ ]:
# simple stuff for now
def fibo(n):
    return 1 if n <= 1 else fibo(n-1) + fibo(n-2)

[fibo(x) for x in range(15)]

some math


In [ ]:
%matplotlib notebook
import numpy as np
import matplotlib.pyplot as plt
plt.ion()

In [1]:
X = np.linspace(-5, 5)
Y = np.exp(X)

plt.plot(X, Y);


---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-1-a5ffd6f09e6e> in <module>
----> 1 X = np.linspace(-5, 5)
      2 Y = np.exp(X)
      3 
      4 plt.plot(X, Y);

NameError: name 'np' is not defined

and now for a table

prior to 5.6 we were getting very small tables

sample table
men 10%
women 70%
children 30%