File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed
Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ Gallery sections
6262The naming of sections is critical and will guide the clean-up
6363effort. The current sections are:
6464
65+ * Live example (experimental)
6566* Lines, bars, and markers (more-or-less 1D data)
6667* Shapes and collections
6768* Statistical plots
Original file line number Diff line number Diff line change @@ -19,3 +19,27 @@ a :ref:`FAQ <faq-index>` in our :ref:`user guide <users-guide-index>`.
1919.. admonition:: Tagging!
2020
2121 You can also browse the example gallery by :ref:`tags <tagoverview>`.
22+
23+
24+ Live example (experimental)
25+ ===========================
26+
27+ Try Matplotlib directly in this documentation (press :kbd:`shift` + :kbd:`Enter` to execute code)!
28+
29+ .. rstcheck: ignore-directives=replite
30+ .. replite::
31+ :kernel: xeus-python
32+ :height: 600px
33+ :prompt: Try Matplotlib!
34+ :execute: False
35+
36+ %matplotlib inline
37+
38+ import matplotlib.pyplot as plt
39+ import numpy as np
40+
41+ fig = plt.figure()
42+ plt.plot(np.sin(np.linspace(0, 20, 100)))
43+ plt.show();
44+
45+ Alternatively, you can try the gallery examples below in `our JupyterLite deployment <./../lite/lab>`__.
You can’t perform that action at this time.
0 commit comments