A quick note for displaying R htmlwidgets in Jupyter notebooks without requiring pandoc – there may be a more native way but this acts as a workaround in the meantime if not:
library(htmlwidgets) library(IRdisplay) library(leaflet) m = leaflet() %>% addTiles() saveWidget(m, 'demo.html', selfcontained = FALSE) display_html('<iframe src="demo.html"></iframe>')
PS and from the other side, using
reticulate for Python powered Shiny apps.
3 thoughts on “R HTMLWidgets in Jupyter Notebooks”
Comments are closed.