From afefeefc31907e9f283e82969243a954da7cd1af Mon Sep 17 00:00:00 2001 From: flywire Date: Sat, 4 Feb 2023 18:57:23 +1100 Subject: [PATCH] DOC: Add actual python console output (#193) * Actual python console output * Output lines also stripped --- docs/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/index.md b/docs/index.md index 20eb712..48be52c 100644 --- a/docs/index.md +++ b/docs/index.md @@ -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