1/14/2024 0 Comments Download NotebooksYou can see the links in the rendered HTML document below: For example, the following document embeds content from the notebook penguins.ipynb. These links will by default appear both inline below the embedded content as well as below the table of contents. When you embed the contents of Notebooks in a Quarto document and render the document to HTML, Quarto will automatically include links to the source Notebooks that provided the embedded content. Title : Exploration of penguin characteristics author : Norah Jones toc : true format : html : code-fold : true Links to Source Notebooks If no cell has been found, Quarto will use a cell or cell(s) whose tag matches the cell identifier.įor example, to embed the output of a cell that you have given the tag bill-ratio within Jupyter Lab: If no cell with a matching id is found, Quarto will use a cell that has a label in the code metadata which matches the cell identifier. ( Cell IDs are a newer feature of Jupyter Notebooks that are not yet well supported in Jupyter front ends, but id is checked first to allow for future compatibility as they become more common). The cell identifier is used to locate the proper cell using the following heuristics:įirst, the cell metadata will be checked for a matching id. If the cell identifier is omitted, all of the cells in the notebook will be embedded in the document. The embed shortcode specifies target notebooks using a relative path followed by a cell identifier (e.g. Include the cell code along with the output by adding an echo option to the shortcode, see Embedding Code.Ĭustomize or exclude the link to the the source notebooks, see Links to Source Notebooks. Specify cells in multiple ways, see Specifying Cells.Ĭontrol the output using code cell options in the source Notebook, including things like figure captions, figure layout, and code display, see Code Cell Options. For example, clicking on the link to penguins.ipynb gets you to a page that looks like the following: Following the link takes users to a rendered version of the notebook, allowing them to explore the notebook without having to download and run it locally. Figure 1: A scatterplot of bill dimensions for penguins, made with Altair.Ī link to the source notebook is automatically provided beneath the plot.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |