How does IPython’s magic %paste work? January 6, 2023 by Tarik You can’t copy to IPython directly. This are the steps: Copy the lines you want to copy into IPython into the clipboard Enter %paste into IPython Press enter Profit!