Skip to content

Commit 270db76

Browse files
authored
Fix issue with the post-processing script (#3295)
Attempt to use a better regex.
1 parent 0c7bb1a commit 270db76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.jenkins/post_process_notebooks.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313

1414
# Pattern to search ``` {.python .jupyter-code-cell}
15-
pattern = re.compile(r'(.*?)``` {.python .jupyter-code-cell}\n\n(from IPython.display import display, HTML\nhtml_code = """\n.*?\n"""\ndisplay\(HTML\(html_code\)\))\n```(.*)', re.DOTALL)
15+
pattern = re.compile(r'(.*?)``` {\.python \.jupyter-code-cell}\n(.*?from IPython\.display import display, HTML.*?display\(HTML\(html_code\)\))\n```(.*)', re.DOTALL)
1616

1717

1818
def process_video_cell(notebook_path):

0 commit comments

Comments
 (0)