Skip to content

Commit afefeef

Browse files
authored
DOC: Add actual python console output (#193)
* Actual python console output * Output lines also stripped
1 parent 10fc427 commit afefeef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ You can configure `sphinx-copybutton` to detect *input prompts* in code
4646
cells, and then both remove these prompts before copying, as well as skip
4747
lines that *don't* start with prompts (in case they are output lines).
4848

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

5252
```python
5353
>>> a = 2
5454
>>> print(a)
5555
2
56-
56+
>>>
5757
>>> b = 'wow'
5858
>>> print(b)
5959
wow

0 commit comments

Comments
 (0)