File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,11 @@ def nb_export_cli(nbname,
173
173
174
174
# %% ../nbs/api/13_cli.ipynb
175
175
@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'''
177
181
cfg = get_config () if is_nbdev () else None
178
182
nbs = nbs or (cfg .nbs_path if cfg else '.' )
179
183
lib = lib or (cfg .lib_path if cfg else '.' )
Original file line number Diff line number Diff line change 315
315
"source" : [
316
316
" #|export\n " ,
317
317
" @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 " ,
319
323
" cfg = get_config() if is_nbdev() else None\n " ,
320
324
" nbs = nbs or (cfg.nbs_path if cfg else '.')\n " ,
321
325
" lib = lib or (cfg.lib_path if cfg else '.')\n " ,
You can’t perform that action at this time.
0 commit comments