How to stop line breaks in output of Pandas dataframes

Those weren’t meant to correspond exactly; they just were some samples of the pd.set_option() options that I had handy. I think they were the ones in the example from the post and replies. There’s a lot of them listed here. Perhaps one of them does what you say is your preference to replace pd.set_option('display.width',-1).

Some of the viewers may be extensions. I’m not sure of the underlying mechanisms. Since you are talking JupyterLab, I know there is ipyregulartable - An ipywidgets wrapper of regular-table for Jupyter and the related Perspective that “is an interactive analytics and data visualization component, which is especially well-suited for large and/or streaming datasets.”

There several of those viewers/explorers that I think work in notebooks; however, I cannot say how well they do in JupyterLab. Some of these others are listed here and qgrid. And there is a related JupyterLab extension you can learn about from links here.

1 Like