Skip to content

Instantly share code, notes, and snippets.

View milosonator's full-sized avatar

Michiel Haisma milosonator

  • Zurich, Switzerland
View GitHub Profile
@andershammar
andershammar / matplotlib-zeppelin
Created July 1, 2015 07:42
Example showing how to use matplotlib from a Zeppelin notebook
%pyspark
import matplotlib.pyplot as plt; plt.rcdefaults()
import numpy as np
import matplotlib.pyplot as plt
import StringIO
def show(p):
img = StringIO.StringIO()
p.savefig(img, format='svg')