Open betolink opened 2 years ago
Update: the HTML output encoding comes from geopandas, the weird thing is that the output renders fine in a Jupyter notebook but not when we use quarto render
The issue can be traced back to this commit on Branca https://github.com/python-visualization/branca/commit/eefe45c5fdaa6a39d02d88464e8dfb6c233d9cfb Folium's template engine, which in turn is used to render maps in Geopandas. This commit changed the iframe property from data-html
to srcdoc
in the rendered HTML, looks like this causes the inner HTML to be not encoded and not cross domain. I don't know if Quarto could be smart enough to fix this kind of outputs from Jupyter widgets on the fly but Geopandas is widely used in the GIS world so it would be nice if there can be a solution on this side.
Bug description
A while ago I rendered qmd files with the following Python code:
and worked just fine giving me the following:
Now it renders like this
Looking at the generated md file I noticed that it used to be an iframe with encoded html using the
data-html
tag. Now it generates an iframe withsrcdoc
and the output is not url-encodedI'm using the latest stable release
1.1.251
and when it worked I was using0.9.345
Checklist