Test utilities for Jupyter Notebook file
Project description
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
%% ...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nbtester-0.4.3.tar.gz
(3.2 kB
view hashes)