Last active
September 7, 2017 07:53
-
-
Save pierdom/29cca7f2317f641ded7b7510ea72df67 to your computer and use it in GitHub Desktop.
[Visualize matplotlib plots in Zeppelin notebook] #zeppelin #python #spark #bigdata #matplotlib #visualization
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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