Repository navigation
Open
Labels
bugSomething isn't workingcrossrefengines-jupyterAnything related to Jupyter engineregressionFunctionality that used to work but now is broken.
Milestone
Description
Bug description
As shown below and documented in #9927 multi-part figures became stretched in recent versions. The patch works, but not for figures with subcaptions.
Steps to reproduce
firefox https://github.com/codespaces/new?hide_repo_select=true&ref=main&repo=447558863 # or other browser
# then open a terminal and run:
quarto preview
# edit block beginning as follows to remove the subcaptions:
#| label: fig-raster-slopeYou get this before:
Expected behavior
The figures should not be stretched, as was the case in previous versions and as is the case after removing subcaptions:
Actual behavior
See screenshot with stretched images above
Your environment
- VS Code but only the quarto version is relevant for this example I think
Quarto check output
quarto check
Quarto 1.5.47
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.2.0: OK
Dart Sass version 1.70.0: OK
Deno version 1.41.0: OK
Typst version 0.11.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 1.5.47
Path: /opt/quarto/bin
[✓] Checking tools....................OK
TinyTeX: (not installed)
Chromium: (not installed)
[✓] Checking LaTeX....................OK
Tex: (not detected)
[✓] Checking basic markdown render....OK
[✓] Checking Python 3 installation....OK
Version: 3.11.4
Path: /usr/local/bin/python3
Jupyter: 5.7.2
Kernels: python3
[✓] Checking Jupyter engine render....OK
[✓] Checking R installation...........(None)
Unable to locate an installed version of R.
Install R from https://cloud.r-project.org/Metadata
Metadata
Assignees
Labels
bugSomething isn't workingcrossrefengines-jupyterAnything related to Jupyter engineregressionFunctionality that used to work but now is broken.


Activity
cscheid commentedon Jun 26, 2024
Thanks for the devcontainer, but we do need a small reproducible case if at all possible.
Robinlovelace commentedon Jun 26, 2024
Sorry, just wanted to report this in the quickest way. I imagine the reprex in #9927 but with subcaptions will do the trick but have not had time to test.
[-]Multi-part figures with captions get stretched[/-][+]Some multi-part figures get stretched[/+]Robinlovelace commentedon Jun 26, 2024
With apologies, it seems that it's not the captions causing it. I'm not sure of the cause and not sure how to generate a reprex at this stage..
Robinlovelace commentedon Jun 26, 2024
Here's a minimal reproducible example:
Robinlovelace commentedon Jun 26, 2024
Output:
If you open one of these figures it's not stretched.
Robinlovelace commentedon Jun 26, 2024
Issue is with the HTML as far as I can tell, although a bit outside my comfort zone, does this look right from the source code input above?
cscheid commentedon Jun 26, 2024
Ok, so the problem here is the absence of subcaps, but the presence of captions.
cscheid commentedon Jun 26, 2024
We clearly need to handle this case better in Jupyter. We're fairly late in 1.5 and are being very conservative about fixes, so we'll do that in 1.6.
But the workaround I shared should get you unblocked for 1.5.
15 remaining items
mcanouil commentedon Oct 16, 2024
@Nowosad thanks for sharing.
cscheid commentedon Oct 17, 2024
Pushing this to 1.7 since we have other high-priority issues ahead of our release, and the workaround appears to cover these cases.
Robinlovelace commentedon Oct 17, 2024
Thanks for logging this @cscheid and good luck with 1.6 release.