Currently the Python session code blocks has a button on top-right corner which hides the `>>>` and `...` prompts and the output. Would be nice to implement similar button for the shell session code blocks. It should hide the `$` prompt and the output.
Activity
terryjreedy commentedon Dec 13, 2019
This tutorrial example has one of each. But the command session has only one $ prompt and command. Are there other examples with more?
freddrake commentedon Dec 13, 2019
That example only shows the Python prompt as output; there's no issue of there being additional input there. (I haven't looked for other examples.)
That example also mistakenly colorizes the first
>of the Python prompt as a shell continuation prompt.pradyunsg commentedon May 1, 2021
This exists in the form of a Sphinx extension now: https://github.com/executablebooks/sphinx-copybutton
hugovk commentedon Feb 6, 2026
Please see PR #295.