Skip to content

Add interactive REPL to Overview docs#29

Merged
chrizzFTD merged 6 commits into
developfrom
cursor/sphinx-pyrepl-web-migration-df3b
Jun 27, 2026
Merged

Add interactive REPL to Overview docs#29
chrizzFTD merged 6 commits into
developfrom
cursor/sphinx-pyrepl-web-migration-df3b

Conversation

@chrizzFTD

Copy link
Copy Markdown
Owner

Summary

Migrates the nine doctest walkthrough sections in Overview.rst to live browser REPLs using sphinx-pyrepl-web.

  • Adds sphinx-pyrepl-web to the docs extra in setup.cfg
  • Registers sphinx_pyrepl_web in conf.py
  • Adds _static/pyrepl_bootstrap.py so extending-name examples can share BasicPipeFile across isolated REPL sessions
  • Converts all Overview tutorial blocks to .. py-repl:: directives with :packages: naming (input lines only; doctest output lines removed)
  • Notes that paths render as PosixPath in the browser REPL

README and autodoc docstring examples remain static, per the minimal migration scope.

Validation

  • python3 docs/source/build_docs.py succeeds (Sphinx 9.1.0)
  • Overview.html contains 9 <py-repl> elements with replay-src attributes
  • All generated _static/pyrepl/Overview-*.py replay scripts compile cleanly

Notes

Merged latest develop (RTD Python 3.14, hoverxref removal for Sphinx 9 compatibility) and resolved the setup.cfg conflict by keeping develop's dependency set plus sphinx-pyrepl-web.

Open in Web Open in Cursor 

cursoragent and others added 6 commits June 27, 2026 10:39
Co-authored-by: chrizzftd <chrizzFTD@users.noreply.github.com>
Co-authored-by: chrizzftd <chrizzFTD@users.noreply.github.com>
Co-authored-by: chrizzftd <chrizzFTD@users.noreply.github.com>
Standalone '...' lines are valid doctest block endings but become literal
Ellipsis statements in py-repl replay scripts, causing SyntaxError during
interactive replay.

Co-authored-by: chrizzftd <chrizzFTD@users.noreply.github.com>
The 0.1.1 release fixes bare doctest block terminators in replay scripts,
so the manual workaround of omitting standalone '...' lines is no longer
needed.

Co-authored-by: chrizzftd <chrizzFTD@users.noreply.github.com>
Co-authored-by: chrizzftd <chrizzFTD@users.noreply.github.com>
@chrizzFTD chrizzFTD marked this pull request as ready for review June 27, 2026 11:52
@chrizzFTD chrizzFTD changed the title Add interactive Pyodide REPLs to Overview docs via sphinx-pyrepl-web Add interactive REPL to Overview docs Jun 27, 2026
@chrizzFTD chrizzFTD merged commit 085c0ca into develop Jun 27, 2026
4 checks passed
@chrizzFTD chrizzFTD deleted the cursor/sphinx-pyrepl-web-migration-df3b branch June 27, 2026 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants