From 4ea6f882d49a90f7e921fdff7a6585bb05e7f9cf Mon Sep 17 00:00:00 2001 From: Erick Friis Date: Tue, 14 May 2024 16:27:44 -0700 Subject: [PATCH] infra: remove prints from notebook build (v0.1) (#21689) --- docs/scripts/notebook_convert.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/docs/scripts/notebook_convert.py b/docs/scripts/notebook_convert.py index 97f2dca2534..af3a0e576da 100644 --- a/docs/scripts/notebook_convert.py +++ b/docs/scripts/notebook_convert.py @@ -84,12 +84,8 @@ class CustomRegexRemovePreprocessor(Preprocessor): pattern = re.compile(r"(?s)(?:\s*\Z)|(?:.*#\s*\|\s*output:\s*false.*)") rtn = not pattern.match(cell.source) if not rtn: - print("--remove--") - print(cell.source) return False else: - print("--keep--") - print(cell.source) return True def preprocess(self, nb, resources):