File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7373 'sphinxext.redirect_from' ,
7474 'sphinx_copybutton' ,
7575 'sphinx_panels' ,
76+ 'jupyterlite_sphinx' ,
7677]
7778
7879exclude_patterns = [
Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ Installation
3636
3737 Further details are available in the :doc: `Installation Guide <users/installing/index >`.
3838
39-
4039******************
4140Learning resources
4241******************
Original file line number Diff line number Diff line change @@ -19,6 +19,25 @@ General
1919 faq/index.rst
2020 resources/index.rst
2121
22+ Live example
23+ ############
24+
25+ Try Matplotlib directly in this documentation!
26+
27+ .. replite ::
28+ :kernel: python
29+ :height: 600px
30+
31+ import matplotlib.pyplot as plt
32+ import numpy as np
33+
34+ x = np.linspace(0, 2 * np.pi, 200)
35+ y = np.sin(x)
36+
37+ fig, ax = plt.subplots()
38+ ax.plot(x, y)
39+ plt.show()
40+
2241Tutorials and examples
2342######################
2443
@@ -29,7 +48,7 @@ Tutorials and examples
2948 ../tutorials/index.rst
3049 ../gallery/index.rst
3150
32- Reference
51+ Reference
3352#########
3453
3554.. toctree ::
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ dependencies:
3737 - pip :
3838 - mpl-sphinx-theme
3939 - sphinxcontrib-svg2pdfconverter
40+ - jupyterlite-sphinx
4041 # testing
4142 - coverage
4243 - flake8>=3.8
Original file line number Diff line number Diff line change @@ -19,3 +19,4 @@ sphinxcontrib-svg2pdfconverter>=1.1.0
1919sphinx-gallery>=0.10
2020sphinx-copybutton
2121sphinx-panels
22+ git+https://github.com/martinRenou/jupyterlite-sphinx@bail_if_error
You can’t perform that action at this time.
0 commit comments