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

Remove from code-blocks to make copy-pasted code runnable #61

Closed
gnikit opened this issue Jul 26, 2022 · 2 comments · Fixed by #62
Closed

Remove from code-blocks to make copy-pasted code runnable #61

gnikit opened this issue Jul 26, 2022 · 2 comments · Fixed by #62

Comments

@gnikit
Copy link
Member

gnikit commented Jul 26, 2022

I think that the fenced code-blocks in the docs might need to have the character removed, since copy-pasting the block results into the character being copied as well thus making the command unable to run upon paste

image

@awvwgk
Copy link
Member

awvwgk commented Jul 26, 2022

We can just exclude the prompt: https://sphinx-copybutton.readthedocs.io/en/latest/use.html#strip-and-configure-input-prompts-for-code-cells

@gnikit
Copy link
Member Author

gnikit commented Jul 26, 2022

Ty @awvwgk

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 a pull request may close this issue.

2 participants