Skip to content

Commit c81651a

Browse files
InputCell --> CellInput
1 parent d86f4e7 commit c81651a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

jupyter_sphinx/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
from .ast import (
1414
JupyterCell,
1515
JupyterCellNode,
16-
InputCell,
16+
CellInput,
1717
CellInputNode,
18-
OutputCell,
18+
CellOutput,
1919
CellOutputNode,
2020
CellOutputBundleNode,
2121
JupyterKernelNode,
@@ -269,8 +269,8 @@ def setup(app):
269269

270270
app.add_directive("jupyter-execute", JupyterCell)
271271
app.add_directive("jupyter-kernel", JupyterKernel)
272-
app.add_directive("jupyter-input", InputCell)
273-
app.add_directive("jupyter-output", OutputCell)
272+
app.add_directive("jupyter-input", CellInput)
273+
app.add_directive("jupyter-output", CellOutput)
274274
app.add_directive("thebe-button", ThebeButton)
275275
app.add_role("jupyter-download:notebook", JupyterDownloadRole())
276276
app.add_role("jupyter-download:nb", JupyterDownloadRole())

jupyter_sphinx/ast.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def run(self):
163163
cell_node += cell_input
164164
return [cell_node]
165165

166-
class InputCell(Directive):
166+
class CellInput(Directive):
167167
"""Define a code cell to be included verbatim but not executed.
168168
169169
Arguments
@@ -233,7 +233,7 @@ def run(self):
233233
cell_node += cell_input
234234
return [cell_node]
235235

236-
class OutputCell(Directive):
236+
class CellOutput(Directive):
237237
"""Define an output cell to be included verbatim.
238238
239239
Arguments

0 commit comments

Comments
 (0)