Skip to content

Commit 7b828dd

Browse files
committed
remove a previously deprecated way to setup
1 parent 8b2f597 commit 7b828dd

File tree

2 files changed

+1
-27
lines changed

2 files changed

+1
-27
lines changed

doc/source/index.rst

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,6 @@ To enable the extension, add ``jupyter_sphinx`` to your enabled extensions in
3636
extensions = [
3737
'jupyter_sphinx',
3838
]
39-
40-
41-
.. note::
42-
43-
Since `0.2.4, ``jupyter_sphinx.execute`` is deprecated. Simply use ``jupyter_sphinx`` instead.
4439
4540
Basic Usage
4641
-----------
@@ -473,6 +468,7 @@ Release 0.4.0
473468

474469
- Allow adding inputs and outputs that are not executed using ``jupyter-input`` and ``jupyter-output`` directives.
475470
- Improve script handling by using ``nbconvert`` directly.
471+
- Remove deprecated enabling of the extension as ``jupyter_sphinx.execute``.
476472

477473
Release 0.3.0
478474
~~~~~~~~~~~~~

jupyter_sphinx/execute.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -310,25 +310,3 @@ def write_notebook_output(notebook, output_dir, notebook_name, location=None):
310310
def contains_widgets(notebook):
311311
widgets = get_widgets(notebook)
312312
return widgets and widgets["state"]
313-
314-
315-
def setup(app):
316-
"""A temporary setup function so that we can use it for
317-
backwards compatability.
318-
319-
This should be removed after a deprecation cycle.
320-
"""
321-
# To avoid circular imports we'll lazily import
322-
from . import setup as jssetup
323-
324-
js.logger.warning(
325-
(
326-
"`jupyter-sphinx` was initialized with the "
327-
"`jupyter_sphinx.execute` sub-module. Replace this with "
328-
"`jupyter_sphinx`. Initializing with "
329-
"`jupyter_sphinx.execute` will be removed in "
330-
"version 0.3"
331-
)
332-
)
333-
out = jssetup(app)
334-
return out

0 commit comments

Comments
 (0)