We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b760f40 commit 071f645Copy full SHA for 071f645
jupyter_sphinx/execute.py
@@ -9,10 +9,14 @@
9
import docutils
10
from docutils.parsers.rst import Directive, directives
11
12
-from nbconvert.preprocessors.execute import executenb
+import nbconvert
13
from nbconvert.preprocessors import ExtractOutputPreprocessor
14
from nbconvert.writers import FilesWriter
15
16
+if nbconvert.version_info < (6,):
17
+ from nbconvert.preprocessors.execute import executenb
18
+else:
19
+ from nbclient.client import execute as executenb
20
21
import nbformat
22
0 commit comments