diff --git a/README.md b/README.md
index e86058a0a758eb1eeb774aa817aea2ebb46ccf62..9aed289848df2ed608319f26267a4341974602ff 100644
--- a/README.md
+++ b/README.md
@@ -55,6 +55,7 @@ To generate the documentation, the following additional packages are required:
     -   [mplsignal](https://mplsignal.readthedocs.io/)
     -   [jupyters-sphinx](https://jupyter-sphinx.readthedocs.io/)
     -   [qtgallery](https://github.com/ixjlyons/qtgallery)
+    -   [sphinx-copybutton](https://sphinx-copybutton.readthedocs.io/)
 
 ### Using setuptools to create a package
 
diff --git a/docs_sphinx/conf.py b/docs_sphinx/conf.py
index 7f335128f716a8eb2c9ad8ff62e68b698f909c50..9de7534c5f49aacfaa0f8ad562d57d63467bbb5f 100644
--- a/docs_sphinx/conf.py
+++ b/docs_sphinx/conf.py
@@ -28,6 +28,7 @@ extensions = [
     'sphinx_gallery.gen_gallery',
     'numpydoc',  # Needs to be loaded *after* autodoc.
     'jupyter_sphinx',
+    'sphinx_copybutton',
     #    'qtgallery',
 ]
 
diff --git a/requirements_doc.txt b/requirements_doc.txt
index 3bffd7ca2f8cebff758f71f041d8310c91dcf3c2..cdd50398e6ce59cbca9edf66338d2da82a432f41 100644
--- a/requirements_doc.txt
+++ b/requirements_doc.txt
@@ -5,3 +5,4 @@ sphinx-gallery
 mplsignal
 jupyter-sphinx
 qtgallery
+sphinx-copybutton