Skip to content

Commit

Permalink
Move optional imports into function
Browse files Browse the repository at this point in the history
  • Loading branch information
jmeyers314 committed Jun 7, 2024
1 parent d86d74b commit 4bb07de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_notebooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
import os
from test_helpers import timer
from pathlib import Path
import nbformat
import nbclient


notebook_dir = Path(__file__).resolve().parent.parent / 'notebook'
Expand All @@ -14,6 +12,8 @@ def _notebook_run(path):
"""Execute a notebook via nbclient and collect output.
:returns (parsed nb object, execution errors)
"""
import nbformat
import nbclient
# Load the notebook
nb = nbformat.read(path, as_version=4)

Expand Down

0 comments on commit 4bb07de

Please sign in to comment.