diff --git a/nbdev/config.py b/nbdev/config.py index 16de3a049..be9211bc6 100644 --- a/nbdev/config.py +++ b/nbdev/config.py @@ -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: diff --git a/nbdev/processors.py b/nbdev/processors.py index 9d5f9b97f..376a8bc8b 100644 --- a/nbdev/processors.py +++ b/nbdev/processors.py @@ -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): diff --git a/nbs/api/01_config.ipynb b/nbs/api/01_config.ipynb index 72a115170..6886cc808 100644 --- a/nbs/api/01_config.ipynb +++ b/nbs/api/01_config.ipynb @@ -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", diff --git a/nbs/api/10_processors.ipynb b/nbs/api/10_processors.ipynb index b69068248..d5790b377 100644 --- a/nbs/api/10_processors.ipynb +++ b/nbs/api/10_processors.ipynb @@ -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",