VS Code Jupyter Notebooks - How to stop result text wrapping?

Viewed 648

When using Jupyter Notebooks within VS Code is it possible to stop the code cell result text from wrapping?

When querying wide dataframes (Eg 100 columns wide) the resulting text is unreadable due to the text wrapping and requires copying out to other text editors to be able to read the results.

Attached is a screenshot of a simple dataframe header that is wrapping over a couple of lines, once you're returning actual rows it's unusable.

Screenshot

1 Answers

This could be a limitation of Jupyter's UI. I recommend you to see your data in variable explorer and data viewer. By clicking the Variables icon in the top side after running, you'll see a list of the current variables. For additional information of the variables, you can double-click on a row or use the Show variable in data viewer button to see a more detailed view.

enter image description here enter image description here

Related