Is it possible to embed a Jupyter notebook cell in a second notebook rendered in revealjs? #6519
-
Is it possible to embed a cell in one Jupyter notebook within another notebook such that rendering the latter as a revealjs presentation will cause the former to be included? I tried creating a #| label: fig_1
import matplotlib.pyplot as plt
import numpy as np
plt.scatter(np.random.rand(10), np.random.rand(10)); and a ---
title: Main Notebook
format: revealjs
--- followed by a second Markdown cell containing {{< embed sub_notebook.ipynb#fig_1 >}} I then tried rendering The context for the above is trying to pull in select results from several Jupyter notebooks into one notebook used to present the results. Yes, I know one can create a raw Markdown file that pulls in the results from several notebooks, but it would be useful to do the same with a notebook so that the resulting presentation could also use content local to that notebook. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I just took this for a test run on Quarto 1.4.302 (pre-release) https://quarto.org/docs/download/prerelease and everything appeared to be working. We have been making a number of improvements to If you still see problems - it would be useful to have a sample repo / notebooks to try. I tried to reproduce what you have above a as closely as possible, but sometimes there is a subtle difference that results in the issue not reproducing. |
Beta Was this translation helpful? Give feedback.
I just took this for a test run on Quarto 1.4.302 (pre-release) https://quarto.org/docs/download/prerelease and everything appeared to be working. We have been making a number of improvements to
embed
in Quarto 1.4, so it is definitely possible that this changed between Quarto 1.3 and 1.4.If you still see problems - it would be useful to have a sample repo / notebooks to try. I tried to reproduce what you have above a as closely as possible, but sometimes there is a subtle difference that results in the issue not reproducing.