github executablebooks/MyST-NB v0.3.0
Add glue and paste functionality

latest releases: v1.1.0, v1.0.0, v1.0.0rc1...
4 years ago

This adds a prototype functionality for "glue and paste" with MyST-NB. It closes #4

You glue things into a notebook's metadata like this:

from myst_nb import glue
glue("your-key", an_object)

And it will run IPython's display on the object, then store the mimebundle
at the key you specify.

When the notebooks are parsed with MyST-NB, it builds up a registry of all
the keys across all notebooks, so that you can then refer to them in the following ways:

You can paste it in markdown with a directive like this:

```{paste} your-key
```

Or you can add it in-line like this:

{paste}`your-key`

optionally:

{paste}`your-key:format-string`

See documentation for more details: https://myst-nb.readthedocs.io/en/latest/use/glue.html

Don't miss a new MyST-NB release

NewReleases is sending notifications on new releases.