Skip to content

Commit 0330ec9

Browse files
committed
fixes #1540
1 parent a1b7715 commit 0330ec9

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

nbdev/cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ def watch_export(nbs:str=None, # Nb directory to watch for changes
185185
lib = lib or (cfg.lib_path if cfg else '.')
186186
if cfg and (nbs != cfg.nbs_path or lib != cfg.lib_path) and not force:
187187
raise ValueError("In nbdev project. Use --force to override config.")
188+
run(f'nbdev_export')
188189
def _export(e,lib=lib):
189190
p = e.src_path
190191
if (not '.ipynb_checkpoints' in p and p.endswith('.ipynb') and not Path(p).name.startswith('.~')):

nbs/api/13_cli.ipynb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@
327327
" lib = lib or (cfg.lib_path if cfg else '.')\n",
328328
" if cfg and (nbs != cfg.nbs_path or lib != cfg.lib_path) and not force:\n",
329329
" raise ValueError(\"In nbdev project. Use --force to override config.\")\n",
330+
" run(f'nbdev_export')\n",
330331
" def _export(e,lib=lib):\n",
331332
" p = e.src_path\n",
332333
" if (not '.ipynb_checkpoints' in p and p.endswith('.ipynb') and not Path(p).name.startswith('.~')):\n",

0 commit comments

Comments
 (0)