New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add svg traitlet, more examples #1
Conversation
Thanks! Looks great, though there are a couple of typos in saving SVG to a file -- could you fix them? I was hoping there might be a way that the widget itself could have an SVG representation, so that it would automatically work in nbviewer without needing to separately display |
self._auto_svg_filename = None | ||
|
||
def save_svg(self, filename): | ||
data = base64.decodebytes(bytes(self.png, 'ascii')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self.svg
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, didn't need to do anything, really, to the data, so just passing it directly
Ah, that's a longer con... I don't know what parts of the situation are missing: you might need to publish on Any thoughts, @SylvainCorlay? |
Thanks for the fixes. |
Thanks! Looking forward to seeing how it develops! On 05:40, Tue, Jun 28, 2016 ricklupton notifications@github.com wrote:
|
First off, 😍 the work.
This adds SVG output with
XMLSerializer
... seems to work ok! Not sure if this is what you were talking about in the google group thread.I added some examples (and some navigation between them).