wordcloud2 icon indicating copy to clipboard operation
wordcloud2 copied to clipboard

this package doesn't support Jupyter Notebook

Open babybear1992 opened this issue 8 years ago • 2 comments

Hi, hope this message finds you well. I tried to install and run wordcloud2 on Jupyter Notebook, however, it didn't show the results but a small white rectangle. Would you please check it out? Thank you!

babybear1992 avatar Oct 25 '17 10:10 babybear1992

I don't usually use python nor Jupyter, so it may not be a urgent issue for me.

htmlwidgets, the framework fro wordcloud2 does not Jupyter Notebook, like this.

Hope next version for htmlwidgets could provide the function like plotly

Lchiffon avatar Oct 26 '17 08:10 Lchiffon

I had success with the following code.

devtools::install_github("lchiffon/wordcloud2") install.packages("webshot")

library(wordcloud2) library(htmlwidgets) library(webshot) webshot::install_phantomjs() library(IRdisplay)

my_graph <- wordcloud2(demoFreq) my_html = "tmp.html" saveWidget(my_graph, my_html, selfcontained = FALSE) my_png = "wordcloud2.png" webshot(my_html, my_png, delay = 5) display_png(file = my_png)

MitzTD avatar Sep 28 '21 11:09 MitzTD