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.
@Carreau - great idea. Done!
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())
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
may I suggest adding a
_repr_svg_
to Scene ?