Skip to content

Commit 2d61b50

Browse files
committed
Add docments
1 parent 0c60690 commit 2d61b50

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

nbdev/cli.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,11 @@ def nb_export_cli(nbname,
173173

174174
# %% ../nbs/api/13_cli.ipynb
175175
@call_parse
176-
def watch_export(nbs:str=None, lib:str=None, force:bool=False):
176+
def watch_export(nbs:str=None, # Nb directory to watch for changes
177+
lib:str=None, # Export directory to write py files to
178+
force:bool=False # Ignore nbdev config if in nbdev project
179+
):
180+
'''Use `nb_export` on ipynb files in `nbs` directory on changes using nbdev config if available'''
177181
cfg = get_config() if is_nbdev() else None
178182
nbs = nbs or (cfg.nbs_path if cfg else '.')
179183
lib = lib or (cfg.lib_path if cfg else '.')

nbs/api/13_cli.ipynb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,11 @@
315315
"source": [
316316
"#|export\n",
317317
"@call_parse\n",
318-
"def watch_export(nbs:str=None, lib:str=None, force:bool=False):\n",
318+
"def watch_export(nbs:str=None, # Nb directory to watch for changes\n",
319+
" lib:str=None, # Export directory to write py files to\n",
320+
" force:bool=False # Ignore nbdev config if in nbdev project\n",
321+
" ):\n",
322+
" '''Use `nb_export` on ipynb files in `nbs` directory on changes using nbdev config if available'''\n",
319323
" cfg = get_config() if is_nbdev() else None\n",
320324
" nbs = nbs or (cfg.nbs_path if cfg else '.')\n",
321325
" lib = lib or (cfg.lib_path if cfg else '.')\n",

0 commit comments

Comments
 (0)