Matplotlib, creating notebook