vscode: Unable to copy output of dataframe.columns from notebook or IW.
Running the native interactive window using the latest Python and Jupyter extensions, I’m unable to copy text from the output of df.columns
.
Minimal example:
- Open command palette and run “Jupyte Create Interactive Window”.
- Enter
import pandas as pd df = pd.DataFrame(range(2), columns=['foobar']) df.columns
- Try to copy-paste the column name
'foobar'
into the input field at the bottom of the window. Doesn’t work (for me).
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 15 (7 by maintainers)
Trying to copy the result of a
print
statement, there’s a small warning that pops up briefly: