Saving visualization as png
hp0404 opened this issue · 1 comments
hp0404 commented
Is it possible to save model visualization as .png
?
The code below allows me to save vis as .html
, but I don't see anything in the docs about exporting to other formats
import pyLDAvis
import pyLDAvis.gensim
pyLDAvis.enable_notebook()
vis = pyLDAvis.gensim.prepare(lda, corpus, dictionary)
pyLDAvis.save_html(vis, "vis.html")
msusol commented
No, not a current feature as far as I know.
I found this useful: https://nytimes.github.io/svg-crowbar/
ref: https://stackoverflow.com/questions/41101424/downloading-the-image-produced-by-ldavis-library
and then: https://svgtopng.com/