Skip to content

Commit 741ca1b

Browse files
Add REPL to the Getting Started page
1 parent 1e9366d commit 741ca1b

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

doc/source/getting_started/index.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -657,6 +657,28 @@ The community produces a wide variety of tutorials available online. Some of the
657657
material is enlisted in the community contributed :ref:`communitytutorials`.
658658

659659

660+
Try pandas online (experimental)
661+
--------------------------------
662+
663+
Try our experimental `JupyterLite <https://jupyterlite.readthedocs.io/en/stable/>`__ live shell with ``pandas``, powered by `Pyodide <https://pyodide.org/en/stable/>`__.
664+
665+
**Please note it can take a while (>30 seconds) before the shell is initialized and ready to run commands.**
666+
667+
**Running it requires a reasonable amount of bandwidth and resources (>70 MiB on the first load), so
668+
it may not work properly on all devices or networks.**
669+
670+
671+
.. replite::
672+
:kernel: pyodide
673+
:height: 600px
674+
:prompt: Try pandas online!
675+
:execute: False
676+
:prompt_color: #E70288
677+
678+
import pandas as pd
679+
df = pd.DataFrame({"num_legs": [2, 4], "num_wings": [2, 0]}, index=["falcon", "dog"])
680+
df
681+
660682
.. If you update this toctree, also update the manual toctree in the
661683
main index.rst.template
662684

0 commit comments

Comments
 (0)