Skip to content

Instantly share code, notes, and snippets.

@pierdom
Last active September 7, 2017 07:53
Show Gist options
  • Save pierdom/29cca7f2317f641ded7b7510ea72df67 to your computer and use it in GitHub Desktop.
Save pierdom/29cca7f2317f641ded7b7510ea72df67 to your computer and use it in GitHub Desktop.
[Visualize matplotlib plots in Zeppelin notebook] #zeppelin #python #spark #bigdata #matplotlib #visualization
def show(graph):
img = StringIO.StringIO()
graph.savefig(img, format='svg')
img.seek(0)
print "%html <div style='width:1000px'>" + img.buf + "</div>"
show(plt)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment