quarto-dev / quarto-dev/quarto-cli
Geopandas output not rendered correctly
Open
@cscheid is already working on this.
Since Nov 15, 2022.
bug
engines-jupyter
third-party
- Dominant language
- JavaScript
- Stars
- 6k
- Forks
- 458
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Description
Bug description
A while ago I rendered qmd files with the following Python code:
import geopandas
world = geopandas.read_file(geopandas.datasets.get_path('naturalearth_lowres'))
world = world[(world.pop_est>0) & (world.name!="Antarctica")]
world['gdp_per_cap'] = round((world.gdp_md_est * 1e6) / world.pop_est, 2)
world.explore(
column="gdp_per_cap", # make choropleth based on "BoroName" column
popup=True, # show all values in popup (on click)
# tiles="CartoDB positron", # use "CartoDB positron" tiles
cmap="viridis", # use "Set1" matplotlib colormap
style_kwds=dict(color="black") # use black outline
)
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 with srcdoc and the output is not url-encoded

I'm using the latest stable release 1.1.251 and when it worked I was using 0.9.345
Checklist
- Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
- Please format your issue so it is easier for us to read the bug report.
- Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- Please document the operating system you're running. If on Linux, please provide the specific distribution.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.