Testing notebooks with Nikola

This post is just a quick exploration of the capabilities of Nikola with jupyter notebooks

this for inline display of matplotlib plots

In [1]:
%matplotlib inline

some imports

In [2]:
from matplotlib import pyplot as plt 
import numpy as np
import pandas as pd

testing inline plots

In [3]:
np.random.seed(42)
In [4]:
x = np.random.randn(1000)
In [5]:
x = np.cumsum(x)
In [6]:
df = pd.DataFrame(x, columns=['x'], index=pd.date_range(start='2000-1-1', periods=len(x)))
In [7]:
df.plot(legend=None, figsize=(10, 6), grid=True);

equations with MathJax

$$e^x=\sum_{i=0}^\infty \frac{1}{i!}x^i$$

pandas dataframes

In [8]:
df.head()
Out[8]:
x
2000-01-01 0.496714
2000-01-02 0.358450
2000-01-03 1.006138
2000-01-04 2.529168
2000-01-05 2.295015
In [ ]:
 

Comments