quarto-dev / quarto-dev/quarto-cli

Plotly image does not render correctly when rendering with GH actions

Open
#5,766 21 comments 2 reactions 1 assignee View on GitHub

@cderv is already working on this.

Since May 31, 2023.

bug early-in-release engines-knitr plotly
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:

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.