Skip to content

Commit

Permalink
[HTMLExporter] Initialize resources before widget filtering (#2118)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
yuvipanda and pre-commit-ci[bot] authored Mar 1, 2024
1 parent fec19fa commit 8dac97a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -1536,6 +1536,7 @@ raw template
{%- endblock in_prompt -%}
"""


exporter_attr = AttrExporter()
output_attr, _ = exporter_attr.from_notebook_node(nb)
assert "raw template" in output_attr
Expand Down
2 changes: 2 additions & 0 deletions nbconvert/exporters/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,8 @@ def from_notebook_node( # type:ignore[explicit-override, override]
"highlight_code", Highlight2HTML(pygments_lexer=lexer, parent=self)
)

resources = self._init_resources(resources)

filter_data_type = WidgetsDataTypeFilter(
notebook_metadata=self._nb_metadata, parent=self, resources=resources
)
Expand Down

0 comments on commit 8dac97a

Please sign in to comment.