Skip to content

Commit

Permalink
When using the copybutton in code blocks, exclude copying the prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
stevepiercy committed Nov 12, 2024
1 parent 1b3e65e commit 895ef31
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 -------------------------------------------------
Expand Down

0 comments on commit 895ef31

Please sign in to comment.