aboutsummaryrefslogtreecommitdiffstats
path: root/nbs/cli.ipynb
diff options
context:
space:
mode:
Diffstat (limited to 'nbs/cli.ipynb')
-rw-r--r--nbs/cli.ipynb5
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)"
]
},
{