Skip to content

Commit

Permalink
comma-separated
Browse files Browse the repository at this point in the history
  • Loading branch information
jph00 committed Sep 14, 2024
1 parent eabf3f4 commit 6220815
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion nbdev/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def _apply_defaults(
clear_all:bool_arg=False, # Remove all cell metadata and cell outputs?
cell_number:bool_arg=True, # Add cell number to the exported file
put_version_in_init:bool_arg=True, # Add the version to the main __init__.py in nbdev_export
skip_procs:str='', # A list of processors that you want to skip
skip_procs:str='', # A comma-separated list of processors that you want to skip
):
"Apply default settings where missing in `cfg`."
if getattr(cfg,'repo',None) is None:
Expand Down
2 changes: 1 addition & 1 deletion nbdev/processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def base_procs(self):

def procs(self):
"Processors for export"
skip_procs = get_config().get('skip_procs', '').split()
skip_procs = get_config().get('skip_procs', '').split(',')
return L(self.base_procs()).filter(lambda x: x.__name__ not in skip_procs) + self.xtra_procs()

def nb_proc(self, nb):
Expand Down
2 changes: 1 addition & 1 deletion nbs/api/01_config.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
" clear_all:bool_arg=False, # Remove all cell metadata and cell outputs?\n",
" cell_number:bool_arg=True, # Add cell number to the exported file\n",
" put_version_in_init:bool_arg=True, # Add the version to the main __init__.py in nbdev_export\n",
" skip_procs:str='', # A list of processors that you want to skip\n",
" skip_procs:str='', # A comma-separated list of processors that you want to skip\n",
"):\n",
" \"Apply default settings where missing in `cfg`.\"\n",
" if getattr(cfg,'repo',None) is None:\n",
Expand Down
2 changes: 1 addition & 1 deletion nbs/api/10_processors.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@
"\n",
" def procs(self):\n",
" \"Processors for export\"\n",
" skip_procs = get_config().get('skip_procs', '').split()\n",
" skip_procs = get_config().get('skip_procs', '').split(',')\n",
" return L(self.base_procs()).filter(lambda x: x.__name__ not in skip_procs) + self.xtra_procs()\n",
" \n",
" def nb_proc(self, nb):\n",
Expand Down

0 comments on commit 6220815

Please sign in to comment.