Skip to content

Commit 0a45f93

Browse files
authored
FIX Add additional prompts for sphinx-copybutton (scikit-learn#26712)
1 parent 70f72c6 commit 0a45f93

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@
6666
]
6767

6868
# Specify how to identify the prompt when copying code snippets
69-
copybutton_prompt_text = ">>> "
69+
copybutton_prompt_text = r">>> |\.\.\. "
70+
copybutton_prompt_is_regexp = True
7071

7172
try:
7273
import jupyterlite_sphinx # noqa: F401

0 commit comments

Comments
 (0)