Skip to content

Commit

Permalink
Try to remove None check condition.
Browse files Browse the repository at this point in the history
  • Loading branch information
HaudinFlorence committed Oct 8, 2024
1 parent c8483f8 commit 711cee8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nbconvert/exporters/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,8 @@ def from_notebook_node( # type:ignore[explicit-override, override]
markdown_collection = markdown_collection + cell.source + "\n"

resources = self._init_resources(resources)
print('type:', resources)

resources["tableofcontents"] = extract_titles_from_markdown_input(markdown_collection)

filter_data_type = WidgetsDataTypeFilter(
Expand Down Expand Up @@ -354,8 +356,8 @@ def resources_include_url(name):
return markupsafe.Markup(src)

resources = super()._init_resources(resources)
if resources is None:
resources = {}


resources["theme"] = self.theme
resources["include_css"] = resources_include_css
resources["include_lab_theme"] = resources_include_lab_theme
Expand Down

0 comments on commit 711cee8

Please sign in to comment.