quarto-dev / quarto-dev/quarto-cli

Quarto preview of revealjs sometimes doesn't have speakerview when `multiplex: true`

Open
#4,258 6 comments 0 reactions 1 assignee View on GitHub

@cderv is already working on this.

Since Mar 20, 2023.

bug preview revealjs
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Description

Bug description

It happens inconsistenlty, but sometimes when I preview a revealjs presentation, the Speaker View ("S") command doesn't work. If I type "?" for the list of keys, it's not available.

image

The solution is to save the presentation source (in VSCode) and quarto runs again. Alternatively, I can kill the preview process and re-do the preview. Again, this doesn't always fix the problem, but when it does, the "S" command is at the bottom of the help list (see below) and it works as expected:

image

I'm not always using multiplex in my presentations with students (it's useful for online, low bandwidth), but by setting multiplex: false, it seems to fix the behavior. I suspect it's a race condition with loading modules in the browser. Maybe the multiplex:true is not compatible with speakerview in preview mode? Again, I thought it worth documenting.

I'm on Windows 10, using Chrome, doing previews with quarto preview my-presentation.qmd --to revealjs. Quarto is version 1.3.146.

I didn't do enough tests to find the frequency, but my gut says it's like a 50% chance of happening. When I couldn't reproduce with a vanilla presentation, I found the multiplex: true as part of the puzzle. See the MWE at https://github.com/fuhrmanator/quarto-test/blob/d1eee4019a0af025ab325997318cf87c6586ebf8/revealjs-test/test.qmd

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

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.