diff --git a/doc/source/conf.py b/doc/source/conf.py index 77dd5d03d311c..329ebfb3bd89f 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -71,6 +71,10 @@ "nbsphinx", ] +# sphinx-copybutton configurations +copybutton_prompt_text = r">>> |\.\.\. |\$ |In \[\d*\]: | {2,5}\.{3,}: | {5,8}: " +copybutton_prompt_is_regexp = True + exclude_patterns = [ "**.ipynb_checkpoints", # to ensure that include files (partial pages) aren't built, exclude them