We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23a3c7a commit 515c9dbCopy full SHA for 515c9db
myst_nb/core/read.py
@@ -58,7 +58,7 @@ def create_nb_reader(
58
or None if the input cannot be read as a notebook.
59
"""
60
# the import is here so this module can be loaded without sphinx
61
- from sphinx.util import import_object
+ from importlib import import_module
62
63
# get all possible readers
64
readers = nb_config.custom_formats.copy()
@@ -71,7 +71,7 @@ def create_nb_reader(
71
if str(Path(path)).endswith(suffix):
72
if isinstance(reader, str):
73
# attempt to load the reader as an object path
74
- reader = import_object(reader)
+ reader = import_module(reader)
75
if commonmark_only:
76
# Markdown cells should be read as Markdown only
77
md_config = dc.replace(md_config, commonmark_only=True)
0 commit comments