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)
| 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
|