Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4007196

Browse files
authored
Merge pull request #22995 from meeseeksmachine/auto-backport-of-pr-22994-on-v3.5.x
Backport PR #22994 on branch v3.5.x (Docs: ignore >>> on code prompts on documentation prompts)
2 parents 94bb902 + a0158fe commit 4007196

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

doc/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,10 @@ def matplotlib_reduced_latex_scraper(block, block_vars, gallery_conf,
360360
# '**': ['localtoc.html', 'pagesource.html']
361361
}
362362

363+
# Copies only relevant code, not the '>>>' prompt
364+
copybutton_prompt_text = r'>>> |\.\.\. '
365+
copybutton_prompt_is_regexp = True
366+
363367
# If true, add an index to the HTML documents.
364368
html_use_index = False
365369

0 commit comments

Comments
 (0)