iPython

petlx.ipython.display(tbl, limit=None, **kwargs)[source]

Display a table inline within an iPython notebook. E.g.:

In [0]: from petlx.ipython import display
        tbl = [['foo', 'bar'], ['a', 1], ['b', 2]]
        display(tbl)

Alternatively, using the fluent style:

In [0]: import petl.interactive as etl
        import petlx.ipython
        tbl = etl.wrap([['foo', 'bar'], ['a', 1], ['b', 2]])
        tbl.display()

New in version 0.5.

petlx.ipython.displayall(tbl, **kwargs)[source]

Display all rows from a table inline within an iPython notebook. E.g.:

In [0]: from petlx.ipython import displayall
        tbl = [['foo', 'bar'], ['a', 1], ['b', 2]]
        displayall(tbl)

Alternatively, using the fluent style:

In [0]: import petl.interactive as etl
        import petlx.ipython
        tbl = etl.wrap([['foo', 'bar'], ['a', 1], ['b', 2]])
        tbl.displayall()

New in version 0.5.