[IPython-dev] How to display really long strings?

Anders Schneiderman ASchneiderman at asha.org
Thu Jul 17 17:08:28 EDT 2014

Thanks, Will! That solved the problem - and as an added bonus, I've got a few more useful techniques courtesy of set_option.


> ---------- Forwarded message ----------
> From: Anders Schneiderman <ASchneiderman at asha.org>
> To: "ipython-dev at scipy.org" <ipython-dev at scipy.org>
> Cc:
> Date: Tue, 15 Jul 2014 11:18:48 -0400
> Subject: [IPython-dev] How to display really long strings?
> I need to do a series of transformations to a column in a pandas data frame that contains very long strings. When I try to display the column via head, etc, IPython Notebook truncates it - a totally understandable approach for most long strings, but it means I can't see whether the transformations were done properly. Any thoughts about a one-off workaround? I took a look at the documentation but couldn't figure out how to do it.

Have you tried changing the following pandas output display options?

pandas.set_option('display.width', 1000) pandas.set_option('display.max_colwidth', 100)


IPython-dev mailing list
IPython-dev at scipy.org

More information about the IPython-dev mailing list