infra: remove prints from notebook build (#21688)

pull/21691/head
Erick Friis 3 weeks ago committed by GitHub
parent 024c11ff9c
commit 3ee0747382
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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):

Loading…
Cancel
Save