Skip to content

Commit 3faa465

Browse files
Move the REPL to Gallery intro page
1 parent cf3a737 commit 3faa465

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

doc/devel/MEP/MEP12.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ Gallery sections
6262
The naming of sections is critical and will guide the clean-up
6363
effort. 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

galleries/examples/README.txt

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff 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>`__.

0 commit comments

Comments
 (0)