• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ExecutableBookProject / MyST-NB / 140 / 2
84%
master: 84%

Build:
DEFAULT BRANCH: master
Ran 14 Mar 2020 02:49AM UTC
Files 4
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

14 Mar 2020 02:47AM UTC coverage: 79.87% (-0.004%) from 79.874%
TEST_TYPE="pytest" PYPI_DEPLOY=true

push

travis-ci

web-flow
Add glue and paste functionality (#66)

committed on behalf of @choldgraf 

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:

```python
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

246 of 308 relevant lines covered (79.87%)

0.8 hits per line

Source Files on job 140.2 (TEST_TYPE="pytest" PYPI_DEPLOY=true)
  • Tree
  • List 0
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 93
  • Travis Job 140.2
  • b46c2f1f on github
  • Prev Job for TEST_TYPE="pytest" PYPI_DEPLOY=true on master (#116.2)
  • Next Job for TEST_TYPE="pytest" PYPI_DEPLOY=true on master (#141.2)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc