Replies: 7 comments 6 replies
-
Could you share a small self-contained "working" (reproducible) example to work with, i.e., a complete Quarto document or a Git repository? The goal is to make it as easy as possible for us to recreate your problem so that we can fix it: please help us help you! Thanks. You can share a self-contained "working" (reproducible) Quarto document using the following syntax, i.e., using more backticks than you have in your document (usually four If you have multiple files (and if it is absolutely required to have multiple files), please share as a Git repository.
Additionally and if not already given, please share the output of |
Beta Was this translation helpful? Give feedback.
-
@mcanouil Sure, I can do it, but that was the purpose of my question -- to check whether the cover image logic is supposed to work for Jupyter notebooks and whether there are any Quarto projects that use this feature. |
Beta Was this translation helpful? Give feedback.
-
Ok, I've created the MRE, I can share it, but I have found out that the issue is related to The issue with |
Beta Was this translation helpful? Give feedback.
-
I can confirm that listing cover images logic does not work for notebooks with |
Beta Was this translation helpful? Give feedback.
-
I don't expect arbitrary referencing of images across the pages with embedded resources to work (I assumed embedding happens at the level of individual pages). But thumbnails are a bit different story -- there is only one thumbnail per notebook, and which image should be used for a thumbnail is defined at the time of its rendering, not when it is referenced. |
Beta Was this translation helpful? Give feedback.
-
If by "thumbnail" you mean "reduced scale image specifically generated for the listings" (with the emphasis on reduced scale and specifically generated), I agree.
Which is a nice feature that allows treating certain website pages (since To be clear, I do not propose implementing listings support for embed-resources pages. The only thing I suggest is that it would be nice if Quarto can warn the user about the limitations that embed-resources imposes for websites. |
Beta Was this translation helpful? Give feedback.
-
I am not sure if I have encompassed all the nature of the issue here. However, I noticed we are talking about embedded resources and maybe avoiding embedding some of the content. I just want to share that adding Sharing in case it can help. Sorry if I am out of context |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Before submitting an issue, I just wanted to check here, whether the cover images are supported for Jupyter python notebooks.
It is working for me with R notebooks (knitr engine + ggplot), but in Jupyter notebooks the figure with labels starting with
cover_
are not picked up as covers.In fact, none of the plots are picked up as covers, although I see that the
cover_...-output-1.png
files are generated.Also, the
class: preview-image
attribute does not seem to have any effect in Jupyter notebooks, I don't seepreview-image
in the classes of the generated div/img elements in the html output.Am I doing something wrong?
Beta Was this translation helpful? Give feedback.
All reactions