quarto-dev / quarto-dev/quarto-cli

Python figure cross-reference missing caption and creating subcaption

Open
#4,374 9 comments 0 reactions 1 assignee View on GitHub

@cscheid is already working on this.

Since Feb 27, 2023.

bug engines-jupyter figures third-party
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Description

Bug description

When using Python via vscode Jupyter Notebook, adding the label and fig-cap to respective code cell not rendering properly in website project.

Expected one caption per figure but website project renders like subcaption, see image below.

Reproducible notebook here:
https://github.com/lgonzalezsa/hello_quarto/blob/test_website/test/website/testing.ipynb

image

My environment is:
Linux: Pop_OS! 22.04 6.0.12-76060006-generic
vscode:
Version: 1.75.1
Commit: 441438abd1ac652551dbe4d408dfcec8a499b8bf
Date: 2023-02-08T21:35:30.018Z
Electron: 19.1.9
Chromium: 102.0.5005.194
Node.js: 16.14.2
V8: 10.2.154.23-electron.0
OS: Linux x64 6.0.12-76060006-generic
Sandboxed: No

quarto v1.2.335
[✓] Inspecting tools

Tool Status Installed Latest
chromium Not installed --- 869685
tinytex Up to date v2023.02 v2023.02

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.