Skip to content

Commit

Permalink
DOC: Add actual python console output (#193)
Browse files Browse the repository at this point in the history
* Actual python console output

* Output lines also stripped
  • Loading branch information
flywire authored Feb 4, 2023
1 parent 10fc427 commit afefeef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ You can configure `sphinx-copybutton` to detect *input prompts* in code
cells, and then both remove these prompts before copying, as well as skip
lines that *don't* start with prompts (in case they are output lines).

For example, this site has been configured to strip Python prompts (">>> ").
For example, this site has been configured to strip Python prompts (">>> ") and output lines.
Try copy-pasting the code block below.

```python
>>> a = 2
>>> print(a)
2

>>>
>>> b = 'wow'
>>> print(b)
wow
Expand Down

0 comments on commit afefeef

Please sign in to comment.