quarto-dev / quarto-dev/quarto-cli
Plotly image does not render correctly when rendering with GH actions
@cderv is already working on this.
Since May 31, 2023.
- Dominant language
- JavaScript
- Stars
- 6k
- Forks
- 458
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Description
Bug description
When using Plotly with Quarto on GH pages, the plot does not render.
Steps to reproduce
I made a small repo to demonstrate the problem:
- Repo: https://github.com/juliasilge/plotly-quarto-ghpages
- Site: https://juliasilge.github.io/plotly-quarto-ghpages/
Expected behavior
When I publish with GH pages, I expect the image to be rendered on this page: https://juliasilge.github.io/plotly-quarto-ghpages/
Actual behavior
There is a blank space where the image should be. I can write the HTML to a file and then include that, but that is not as expected.
Your environment
This happens when publishing on GH pages, like so: https://github.com/juliasilge/plotly-quarto-ghpages/blob/main/.github/workflows/quarto-publish.yaml
The page looks fine if I render locally.
Quarto check output
You can look at the GH action workflow to see which versions of Quarto and such are being used.
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.