From 053113514bef0b9a6ad1750e5df004cbfc899f20 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Wed, 4 Oct 2023 19:40:07 -0500 Subject: [PATCH 1/2] Restore ResourcesDict to the public API --- nbconvert/exporters/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nbconvert/exporters/__init__.py b/nbconvert/exporters/__init__.py index 7a29d1300..c043f8fce 100644 --- a/nbconvert/exporters/__init__.py +++ b/nbconvert/exporters/__init__.py @@ -1,6 +1,6 @@ from .asciidoc import ASCIIDocExporter from .base import ExporterDisabledError, ExporterNameError, export, get_export_names, get_exporter -from .exporter import Exporter, FilenameExtension +from .exporter import Exporter, FilenameExtension, ResourcesDict from .html import HTMLExporter from .latex import LatexExporter from .markdown import MarkdownExporter @@ -32,6 +32,7 @@ "PythonExporter", "QtPDFExporter", "QtPNGExporter", + "ResourcesDict", "RSTExporter", "ScriptExporter", "SlidesExporter", From 6f14f6424b4b480f2fb91be5191ce9b6e1dddd8d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 5 Oct 2023 00:40:35 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 37356001c..1f57e1b4e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1317,6 +1317,7 @@ raw template {%- endblock in_prompt -%} """ + exporter_attr = AttrExporter() output_attr, _ = exporter_attr.from_notebook_node(nb) assert "raw template" in output_attr