diff options
| author | Eugene Triguba <hello@eugenetriguba.com> | 2026-05-24 00:34:46 +0000 |
|---|---|---|
| committer | Eugene Triguba <hello@eugenetriguba.com> | 2026-05-24 00:34:46 +0000 |
| commit | 5b5ef24910874bf842b91caaa0b7febc46645842 (patch) | |
| tree | 144cf307473ef3c9409cbd7c0d7b7b9578fea530 /nbs/cli.ipynb | |
| parent | Rename init to pkg-init (diff) | |
| download | nb-5b5ef24910874bf842b91caaa0b7febc46645842.zip | |
Refactor core utilities from export into core module
Diffstat (limited to 'nbs/cli.ipynb')
| -rw-r--r-- | nbs/cli.ipynb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nbs/cli.ipynb b/nbs/cli.ipynb index c6a8df9..7126e7c 100644 --- a/nbs/cli.ipynb +++ b/nbs/cli.ipynb @@ -46,7 +46,7 @@ "import nbformat\n", "\n", "from nb import export_nb,clean_nb\n", - "from nb.export import read_nb\n", + "from nb.core import read_nb\n", "from nb.config import get_config,Config" ] }, @@ -298,7 +298,8 @@ " mk_nb_cfg(tmp, nb_dir=tmp, export_dir=tmp)\n", " run_cli('export', '--clean')\n", " test.equal((Path(tmp)/'tmp.py').read_text(), mk_nb_src(DIRTY_VALID_EXPORTED_CELLS))\n", - " test.equal(cleaned.cells[1].execution_count, None)" + " with open(nb_path) as f: cleaned_nb = nbformat.v4.reads(f.read())\n", + " test.equal(cleaned_nb.cells[1].execution_count, None)" ] }, { |