This is a simple illustration that the

- code highlighting works
- plots are shown

This post that was exported from a Jupyiter notbook, as described in the previous post Introduction and Hello!

We start with importing numpy and matplotlib, two important python packages.

1 2 3 4 |
import numpy as np import matplotlib.pyplot as plt import matplotlib.style as style style.use('ggplot') |

Now we generate vectorised x and y values for plotting:

1 2 3 4 5 |
X = np.array(range(200)) * np.pi/100 Y = np.sin(X) plt.plot(X,Y) plt.title('Sin function') |

So, it works, hurray!