Skip to content

Commit

Permalink
Merge pull request #30 from takluyver/no-require-nbconvert
Browse files Browse the repository at this point in the history
Don't require nbconvert
  • Loading branch information
takluyver authored May 15, 2024
2 parents e0466fc + 3adb3fc commit 0eee210
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nbparameterise/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import re
from warnings import warn

from nbconvert.preprocessors import ExecutePreprocessor

class Parameter(object):
def __init__(self, name, vtype, value=None, metadata=None, comment=None):
Expand Down Expand Up @@ -183,6 +182,7 @@ def replace_definitions(nb, values, execute=False, execute_resources=None,
cell.source = drv.build_definitions(values, prev_code=cell.source)
if execute:
warn("execute=True is deprecated, use nbclient instead", stacklevel=2)
from nbconvert.preprocessors import ExecutePreprocessor
resources = execute_resources or {}
nb, resources = ExecutePreprocessor().preprocess(nb, resources)
return nb
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ classifiers = [
]
readme = "README.rst"
dependencies = [
"nbconvert",
"nbformat",
"astcheck >=0.3",
]
requires-python = ">=3.8"
Expand Down

0 comments on commit 0eee210

Please sign in to comment.