Skip to content

Commit 4f68bdd

Browse files
authored
use copybutton_propmt as regular expression
1 parent ea40b03 commit 4f68bdd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

doc/source/conf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,9 @@ def setup(app):
286286
plot_html_show_formats = False
287287
plot_html_show_source_link = False
288288

289-
copybutton_prompt_text = ">>> "
289+
# sphinx-copybutton configurations
290+
copybutton_prompt_text = r">>> |\.\.\. |\$ |In \[\d*\]: | {2,5}\.\.\.: | {5,8}: "
291+
copybutton_prompt_is_regexp = True
290292
# -----------------------------------------------------------------------------
291293
# LaTeX output
292294
# -----------------------------------------------------------------------------

0 commit comments

Comments
 (0)