Including Notebooks¶
Example ways to hook to a notebook
Create a link to the notebook¶
Commit to github.
Find notebook on github, copy link
Use nbviewer and paste link to get new viewer link:
Convert to static page¶
Step 1, convert to HTML:
jupyter nbconvert --to html notebook.ipynb
Step 2, include it right in:
This is a test notebook¶
Here is some basic text explaining stuff.
In [ ]:
# Python stuff
1 + 1
More text¶
In [ ]:
# Python stuff
1 + 2
Image¶
Here's an example image
In [3]:
import numpy as np
import matplotlib.pyplot as plt
import scipy.stats as stats
mu = 0
std = 1
x = np.linspace(start=-4, stop=4, num=100)
y = stats.norm.pdf(x, mu, std)
plt.plot(x, y)
plt.show()
In [ ]: