Skip to content

Commit 1d22c14

Browse files
authored
Merge pull request #146 from foster999/fix/145
Update depreciated add_lexer syntax
2 parents 4fd1798 + 1828bcf commit 1d22c14

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)