Skip to content

Commit

Permalink
Fix rapids_related_examples extension
Browse files Browse the repository at this point in the history
  • Loading branch information
hcho3 committed Aug 2, 2023
1 parent df105af commit 2296c6a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions extensions/rapids_related_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ def get_title_for_notebook(path: str) -> str:
if cell["cell_type"] == "markdown":
cell_source = MarkdownIt().parse(cell["source"])
for i, token in enumerate(cell_source):
if i == len(cell_source) - 1: # no next_token
continue
next_token = cell_source[i + 1]
if (
token.type == "heading_open"
Expand Down

0 comments on commit 2296c6a

Please sign in to comment.