From 895ef31bc000ebbe00fb34a76a2735dd1ccead21 Mon Sep 17 00:00:00 2001 From: Steve Piercy Date: Tue, 12 Nov 2024 00:46:44 -0800 Subject: [PATCH] When using the copybutton in code blocks, exclude copying the prompt --- docs/conf.py | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/conf.py b/docs/conf.py index de9295db7b..262589fa05 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -113,6 +113,7 @@ # Exclude copy button from appearing over notebook cell numbers by using :not() # The default copybutton selector is `div.highlight pre` # https://github.com/executablebooks/sphinx-copybutton/blob/master/sphinx_copybutton/__init__.py#L82 +copybutton_exclude = ".linenos, .gp" copybutton_selector = ":not(.prompt) > div.highlight pre" # -- Options for HTML output -------------------------------------------------