-
Description[This is a follow-up to this question on embeds, which went unresolved. Link to MWE at end of post.] According to the documentation for embedding from Quarto documents, it should be possible to embed figures generated from within other
---
title: "Quarto MWE"
format: html
---
```{julia}
#| echo: true # <-- preview throws error if 'false'
#| label: fig-index-plot
#| output: true
#| fig-cap: "A plot of the sine function"
using Plots
plot(sin, -2π, 2π)
```
---
title: "About"
format: html
---
{{< embed index.qmd#fig-index-plot >}} But when I do this, the embed reproduces the code but not the figure, eg, ![]() Moreover, setting
Here's a repo with a minimal working example, and also quarto version I'm using:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
This comment was marked as off-topic.
This comment was marked as off-topic.
-
It seems like a bug, but you should not use Regarding your error message when using the Jupyter Notebook, since the cells were not executed, there is nothing in it you can use to embed.
I opened an issue: |
Beta Was this translation helpful? Give feedback.
It seems like a bug, but you should not use
keep-ipynb
to embed the notebook.This file is an intermediary file.
keep-
options are for debugging.If you want to use a Jupyter Notebook out of a Quarto document, set ipynb as format.
Regarding your error message when using the Jupyter Notebook, since the cells were not executed, there is nothing in it you can use to embed.
I opened an issue: