Skip to content

Commit 1828bcf

Browse files
committed
Update depreciated add_lexer syntax
1 parent 4fd1798 commit 1828bcf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jupyter_sphinx/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,8 @@ def setup(app):
279279
app.add_post_transform(CellOutputsToNodes)
280280

281281
# For syntax highlighting
282-
app.add_lexer("ipythontb", IPythonTracebackLexer())
283-
app.add_lexer("ipython", IPython3Lexer())
282+
app.add_lexer("ipythontb", IPythonTracebackLexer)
283+
app.add_lexer("ipython", IPython3Lexer)
284284

285285
app.connect("builder-inited", builder_inited)
286286
app.connect("build-finished", build_finished)

0 commit comments

Comments
 (0)