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

paulgb / runipy / 197
89%

Build:
DEFAULT BRANCH: master
Ran 03 Jan 2017 05:54PM UTC
Jobs 5
Files 5
Run time 2min
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

pending completion
197

Pull #132

travis-ci

web-flow
Add output_callback to NotebookRunner

I added an output_callback to the NotebookRunner class.
This allows to nicely display or save the outputs of a notebook:
Small example:

```
def print_output(cell, out):
    if out.output_type == 'stream':
        print(out.text, end='')

notebook = reads(open(fname).read(), 3)
nb_runner = NotebookRunner(notebook, output_callback=print_output)
nb_runner.run_notebook()
```

I think this also resolves issue #3

Cheers,
Leon
Pull Request #132: Add output_callback to NotebookRunner

11 of 11 new or added lines in 1 file covered. (100.0%)

341 of 384 relevant lines covered (88.8%)

4.14 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
runipy/notebook_runner.py
Jobs
ID Job ID Ran Files Coverage
7 197.7 (PYTHON_VERSION="3.4" IPYTHON_VERSION=3) 03 Jan 2017 05:54PM UTC 0
79.17
Travis Job 197.7
8 197.8 (PYTHON_VERSION="3.3" IPYTHON_VERSION=3) 03 Jan 2017 05:54PM UTC 0
79.17
Travis Job 197.8
9 197.9 (PYTHON_VERSION="2.7" IPYTHON_VERSION=3) 03 Jan 2017 05:54PM UTC 0
78.65
Travis Job 197.9
10 197.10 (PYTHON_VERSION="3.3" IPYTHON_VERSION=2) 03 Jan 2017 05:54PM UTC 0
88.54
Travis Job 197.10
11 197.11 (PYTHON_VERSION="2.7" IPYTHON_VERSION=2) 03 Jan 2017 05:56PM UTC 0
88.02
Travis Job 197.11
Source Files on build 197
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #197
  • Pull Request #132
  • PR Base - master (#196)
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