Python Jupyter: shortcut for copying cell output

See attached screenshot: enter image description here

In Python Jupyter: is there a shortcut to copy cell output to clipboard? (i.e., without having to manually select ctrl-c?)

Alternatively, is there a python function that instead of print will return its output directly to the clipboard so that it is pasted later?

+7
source share
1 answer

You can use the following code snippet:

import pandas as pd df = pd.DataFrame(['Copy me to clipboard']) df.to_clipboard(index=False,header=False) 
+3
source

Source: https://habr.com/ru/post/1262393/


All Articles