Skip to content

Commit

Permalink
add more useful msg to nbdev_export
Browse files Browse the repository at this point in the history
  • Loading branch information
hamelsmu committed Sep 17, 2024
1 parent 0c55cc4 commit cef290e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion nbdev/doclinks.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ def nbdev_export(
"Export notebooks in `path` to Python modules"
if os.environ.get('IN_TEST',0): return
if not is_nbdev(): raise Exception('`nbdev_export` must be called from a directory within a nbdev project.')
path = Path(path or get_config().nbs_path)
if procs:
import nbdev.export
procs = [getattr(nbdev.export, p) for p in L(procs)]
Expand Down
1 change: 0 additions & 1 deletion nbs/api/05_doclinks.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,6 @@
" \"Export notebooks in `path` to Python modules\"\n",
" if os.environ.get('IN_TEST',0): return\n",
" if not is_nbdev(): raise Exception('`nbdev_export` must be called from a directory within a nbdev project.')\n",
" path = Path(path or get_config().nbs_path)\n",
" if procs:\n",
" import nbdev.export\n",
" procs = [getattr(nbdev.export, p) for p in L(procs)]\n",
Expand Down

0 comments on commit cef290e

Please sign in to comment.