Skip to content

Commit

Permalink
Clean up import (#2087)
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
blink1073 and pre-commit-ci[bot] authored Dec 22, 2023
1 parent 0e11f99 commit 1562531
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
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

0 comments on commit 1562531

Please sign in to comment.