Skip to content

Commit

Permalink
monkey patch filtered procs
Browse files Browse the repository at this point in the history
  • Loading branch information
loayshaqir1 committed Oct 23, 2023
1 parent f603b98 commit 99b49fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nbdev_preview.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from nbdev.processors import FilterDefaults
from nbdev.quarto import nbdev_docs

new_FilterDefaults = """
monkey_patch_procs = """
all_procs = FilterDefaults().procs()
def new_procs(self):
procs = [proc for proc in all_procs if proc.__name__ != 'clean_magics']
Expand All @@ -14,6 +14,6 @@ def new_procs(self):
module_file_path = inspect.getfile(FilterDefaults)

with open(module_file_path, 'a') as f:
f.write(new_FilterDefaults)
f.write(monkey_patch_procs)

nbdev_docs()

0 comments on commit 99b49fd

Please sign in to comment.