Skip to main content

Test Utility for Jupyter Notebook file.

Loader

Jupyter Notebook File (test.ipynb):

...
"cells": [
 {
  "cell_type": "code",
  "execution_count": null,
  "metadata": {
   "collapsed": true
  },
  "outputs": [],
  "source": ["num = 8"]
 }
],
...
import unittest
from nbtester.loader import load_cells


class Test(TestCase):
    def test_it(self):
       d = {}
       load_cells(d, "test.ipynb")
       self.assertEqual(d['num'], 8)

Supported Magic Commands

  • % run child.ipynb

  • %% ...

Release files for nbtester 0.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nbtester 0.8.0
File Size Uploaded
nbtester-0.8.0.tar.gz 4.8 kB Details

Release files / nbtester-0.8.0.tar.gz

Download URL nbtester-0.8.0.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
dce67fc86bd596e2d4c3ec1b57082a3f797cf7caec7b130312ecdd6edd8bf03d
BLAKE2b-256 checksum
How to use checksums
a0c4c2301fcd2544fb2a88f5cd9391f6df1671c807b03c998dd34d726b263f1f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release history Release notifications | RSS feed

This release

0.8.0 This release

1 release file

0.7.0

1 release file

0.6.0

1 release file

0.5.1

1 release file

0.5.0

1 release file

0.4.8

1 release file

0.4.7

1 release file

0.4.6

1 release file

0.4.5

1 release file

0.4.4

1 release file

0.4.3

1 release file

0.4.2

1 release file

0.4.1

1 release file

0.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page