Page MenuHomePhabricator

PAWS public link does not show images
Closed, ResolvedPublic

Description

https://public.paws.wmcloud.org/User:VRook_(WMF)/leaflet.ipynb
does not show an image of the generated map. Other notebooks:
https://public.paws.wmcloud.org/11901271/Lab%201%20-%20Revision%20Histories.ipynb
do appear to show images. Why doesn't the first one?

Event Timeline

I guess this happens because the first notebook (archive) uses Leaflet, a R package that control Leaflet maps in R, and Leaflet is a JavaScript library for interactive maps [1], while the second notebook (archive) uses matplotlib and matplotlib doesn't use Javascript in non-interactive plots.

Here's a simpler notebook (archive) that uses matplotlib, images are correctly shown.

[1] https://rstudio.github.io/leaflet/

Makes sense, shows images, but not ones generated on the fly.