Last active
January 23, 2019 05:53
-
-
Save rpmuller/5666810 to your computer and use it in GitHub Desktop.
IPython's SVG display functionality, in conjunction with the ease of making SVG strings using ElementTrees, makes it really easy to have a nice drawing canvas inside of IPython.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To get it working with Jupyter + Python 3.6 I had to do the following:
return "#%x%x%x" % (int(rgb[0]/16),int(rgb[1]/16),int(rgb[2]/16))
SVG(scene.to_svg())