Skip to content
Snippets Groups Projects
Unverified Commit 6e0397ef authored by Chris Holdgraf's avatar Chris Holdgraf Committed by GitHub
Browse files

:wrench: MAINTAIN: Moving admonition section (#934)

parent 51b7ef14
No related branches found
No related tags found
No related merge requests found
...@@ -186,6 +186,35 @@ Admonition dropdowns require JavaScript to be enabled on the browser which they ...@@ -186,6 +186,35 @@ Admonition dropdowns require JavaScript to be enabled on the browser which they
By contrast, the [dropdown directive](content/panels) below works purely *via* HTML+CSS. By contrast, the [dropdown directive](content/panels) below works purely *via* HTML+CSS.
::: :::
### Insert code cell outputs into admonitions
If you'd like to insert the outputs of running code *inside* admonition
blocks, we recommend using [Glue functionality](content:code-outputs:glue).
For example, we'll insert one of the outputs that was glued into the book from the [code outputs page](./code-outputs.md).
The below code:
````md
```{note}
Here's my figure:
{glue:figure}`sorted_means_fig`
```
````
generates:
```{note}
Here's my figure:
{glue:}`sorted_means_fig`
```
See [](content:code-outputs:glue) for more information on how to use Glue to insert your outputs directly into your content.
:::{tip}
To hide code input and output that generated the variable you are inserting, use the `remove_cell` tag.
See [](../interactive/hiding.md) for more information and other tag options.
:::
(content/panels)= (content/panels)=
## Panels and Dropdowns ## Panels and Dropdowns
...@@ -326,35 +355,6 @@ Term 3 ...@@ -326,35 +355,6 @@ Term 3
<img src="../images/fun-fish.png" alt="fishy" width="200px"> <img src="../images/fun-fish.png" alt="fishy" width="200px">
``` ```
### Insert code cell outputs into admonitions
If you'd like to insert the outputs of running code *inside* admonition
blocks, we recommend using [Glue functionality](content:code-outputs:glue).
For example, we'll insert one of the outputs that was glued into the book from the [code outputs page](./code-outputs.md).
The below code:
````md
```{note}
Here's my figure:
{glue:figure}`sorted_means_fig`
```
````
generates:
```{note}
Here's my figure:
{glue:}`sorted_means_fig`
```
See [](content:code-outputs:glue) for more information on how to use Glue to insert your outputs directly into your content.
:::{tip}
To hide code input and output that generated the variable you are inserting, use the `remove_cell` tag.
See [](../interactive/hiding.md) for more information and other tag options.
:::
## Quotations and epigraphs ## Quotations and epigraphs
Quotations and epigraphs provide ways to highlight information given by others. Quotations and epigraphs provide ways to highlight information given by others.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment