Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up import #2087

Merged
merged 2 commits into from
Dec 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -1430,6 +1430,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
7 changes: 4 additions & 3 deletions nbconvert/preprocessors/execute.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.

"""Module containing a preprocessor that executes the code cells
and updates outputs"""
from __future__ import annotations
Expand All @@ -7,11 +10,9 @@
from jupyter_client.manager import KernelManager
from nbclient.client import NotebookClient
from nbclient.client import execute as _execute
from nbclient.exceptions import CellExecutionError # noqa: F401

# Backwards compatibility for imported name
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
from nbclient.exceptions import CellExecutionError # noqa: F401
from nbformat import NotebookNode

from .base import Preprocessor
Expand Down
Loading