Test ipynb format

Test using ipynb format for Pelican

Basic formats

This is normal, italic text and bold text.

Some list:

  • item1
  • item2

What about math? Inline equation $a=\sin b$, and standalone equation:

$$ y=\int_1^2 \frac{1}{1+e^x}\mathrm{d}x $$

Figures

In [1]:
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
%config InlineBackend.figure_format='svg'
In [4]:
_, ax = plt.subplots(figsize=(5, 3))
x = np.linspace(0, np.pi, 30)
y = np.sin(x*3) + x**2
ax.plot(x, y, 'o-', mfc='none')
ax.grid(True)

Load external figures:

In [6]:
from scipy.misc import imread
In [14]:
fig = imread('D:/Desktop/4096.png')
fig.shape
Out[14]:
(768, 599, 4)
In [17]:
_, ax = plt.subplots(figsize=(fig.shape[0]/100, fig.shape[1]/100))
ax.imshow(fig)
Out[17]:
<matplotlib.image.AxesImage at 0x227db319390>

links

social