Skip to content

Commit 62915bf

Browse files
committed
use an up to date alternative to the deprecated add_javascript
1 parent 02e93ee commit 62915bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jupyter_sphinx/execute.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ def builder_inited(app):
4545
"""
4646
require_url = app.config.jupyter_sphinx_require_url
4747
if require_url:
48-
app.add_javascript(require_url)
48+
app.add_js_file(require_url)
4949
embed_url = app.config.jupyter_sphinx_embed_url or ipywidgets.embed.DEFAULT_EMBED_REQUIREJS_URL
5050
else:
5151
embed_url = app.config.jupyter_sphinx_embed_url or ipywidgets.embed.DEFAULT_EMBED_SCRIPT_URL
5252
if embed_url:
53-
app.add_javascript(embed_url)
53+
app.add_js_file(embed_url)
5454

5555

5656
### Directives and their associated doctree nodes

0 commit comments

Comments
 (0)