Skip to content

Allow glue-ing non-text objects (e.g. figures) from other documents #431

@rossbar

Description

@rossbar

Context

The docs note the latest pattern for glueing objects from other notebooks, which is nice. Currently it seems this only works for text variables. If I do something like:

```{glue:} my_figure
:doc: my_notebook.md
```

Then I get the alt-text of my_figure rather than the image itself. If I try to use the glue:figure directive explicitly, I get:

```{glue:figure} my_figure
:doc: my_notebook.md
```
ERROR: Directive 'glue:figure': Unknown option: doc

So at least the error message is clear. It would be great to be able to glue arbitrary objects across notebooks again.

This is possibly related to #298, though I'm not sure. Please feel free to close if this is a duplicate!

Proposal

Allow glueing of objects defined in other notebooks. IIRC this used to work with older myst-nb versions, but I understand that things have been largely rewritten since 0.13.5.

Tasks and updates

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions