implemented notebook transformations from jakevdp