简体   繁体   中英

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

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

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.

在此处输入图像描述 在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM