Use Jupyter's Comm mechanism to copy remote content to a local clipboard. Useful if you're running JupyterHub!
jupyter nbextension install --sys-prefix https://github.com/whsu00/jupyter-pyperclip/archive/main.tar.gz
jupyter nbextension enable --sys-prefix jupyter-pyperclip-main/main