googledatalab / datalab

Interactive tools and developer experiences for Big Data on Google Cloud Platform.
Apache License 2.0
975 stars 249 forks source link

%%chart export to SVG or PNG #783

Open VelizarVESSELINOV opened 8 years ago

VelizarVESSELINOV commented 8 years ago

It will be nice if the chart generated can be easily stored as SVG or PNG like using the other chart libraries.

gramster commented 8 years ago

At the very least, when you save the notebook it is stored in SVG - but that gets replaced by the dynamic version when you load the notebook again. It is what allows charts to be viewable when viewing Datalab .ipynbs on Github.

On Tue, Mar 8, 2016 at 7:49 AM, Velizar VESSELINOV <notifications@github.com

wrote:

It will be nice if the chart generated can be easily stored as SVG or PNG like using the other chart libraries.

— Reply to this email directly or view it on GitHub https://github.com/GoogleCloudPlatform/datalab/issues/783.

gramster commented 8 years ago

Sorry, I meant PNG.

On Tue, Mar 8, 2016 at 9:41 AM, Graham Wheeler gram@google.com wrote:

At the very least, when you save the notebook it is stored in SVG - but that gets replaced by the dynamic version when you load the notebook again. It is what allows charts to be viewable when viewing Datalab .ipynbs on Github.

On Tue, Mar 8, 2016 at 7:49 AM, Velizar VESSELINOV < notifications@github.com> wrote:

It will be nice if the chart generated can be easily stored as SVG or PNG like using the other chart libraries.

— Reply to this email directly or view it on GitHub https://github.com/GoogleCloudPlatform/datalab/issues/783.

VelizarVESSELINOV commented 8 years ago

I also found a workaround like to do a screenshot, but it is not something easy to automate. Same for the save notebook to extract a plot as PNG.

parthea commented 7 years ago

I'm going to try to submit a PR for this. I think this feature would be helpful for users that want to build dashboards outside of Datalab.