Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement copybutton for the shell session #35

Open
serhiy-storchaka opened this issue Dec 12, 2019 · 3 comments
Open

Implement copybutton for the shell session #35

serhiy-storchaka opened this issue Dec 12, 2019 · 3 comments

Comments

@serhiy-storchaka
Copy link
Member

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.

@terryjreedy
Copy link
Member

This tutorrial example has one of each. But the command session has only one $ prompt and command. Are there other examples with more?

@freddrake
Copy link
Member

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
Copy link
Member

pradyunsg commented May 1, 2021

This exists in the form of a Sphinx extension now: https://github.com/executablebooks/sphinx-copybutton

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants