bertviz icon indicating copy to clipboard operation
bertviz copied to clipboard

Saving visualizations

Open e-tornike opened this issue 5 years ago • 7 comments

Thanks for the great tool!

It would be nice to be able to save the visualizations for specific layers/heads as images. I have not been able to find a spot in the model/head/neuron_view.js file to add a saving function.

Do you maybe have a suggestion on how to save the visualizations as images?

Thanks!

e-tornike avatar Jul 31 '19 11:07 e-tornike

Hi, thanks for the suggestion and question. I don't currently have a suggestion on how to do that, but would agree it would be a nice feature.

jessevig avatar Aug 04 '19 14:08 jessevig

Re-ping on this! Would be very beneficial for my work as well!

geetickachauhan avatar Sep 05 '19 15:09 geetickachauhan

Thanks for your feedback. Agreed that would be nice to have such a feature as opposed to taking a screenshot.

jessevig avatar Sep 21 '19 19:09 jessevig

Hey, is this feature available yet? Would be really helpful for my work as well.

abhik-99 avatar Apr 18 '21 18:04 abhik-99

Hi @abhik-99, unfortunately still not available, but your feedback is duly noted. Thanks.

jessevig avatar Apr 18 '21 19:04 jessevig

I tried to use "saveSvgAsPng" since the js uses SVG to create its content. However it is not supported by requirejs ( although on github it says so, but requirejs only return undefined obj ). And I am not sure how to make it load in jupyter notebook in the pre-output area x..x

SilverDragon-RY avatar Apr 28 '22 09:04 SilverDragon-RY

Hi I have coded this enchantment and made a pull request ^ ^

SilverDragon-RY avatar May 01 '22 07:05 SilverDragon-RY