spatialaudio / nbsphinx

:ledger: Sphinx source parser for Jupyter notebooks
https://nbsphinx.readthedocs.io/
MIT License
451 stars 130 forks source link

Bug: Copy Button is Visible for Cellcounter #607

Closed kolibril13 closed 2 years ago

kolibril13 commented 2 years ago

I think it is more a bug than a feature, the sphinx-copybutton shows up on the cell itself (as intended), but also at the cell counter: Alabaster theme: image

Furo theme: image

mgeier commented 2 years ago

This should already be handled:

https://github.com/spatialaudio/nbsphinx/blob/8bd255757ade0d072e5e13c9da706e002d6fa050/src/nbsphinx.py#L646-L649

But maybe the CSS names in sphinx-copybutton have changed?

kolibril13 commented 2 years ago

This is the css file I found in one of my projects build folder: image

mgeier commented 2 years ago

610 should fix this. Can you please check if it works for you?