iPython Utilities

petlx.ipython.display(tbl, *sliceargs)[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]: from petl.interactive import etl
        import petlx.ipython
        tbl = [['foo', 'bar'], ['a', 1], ['b', 2]]
        etl(tbl).display()

New in version 0.5.

Deprecated since version 0.6.

The petl.interactive module supports _repr_html_ as of 0.13.1 so this function is not necessary. E.g., the following should give an HTML rendering of the table inline within an iPython notebook:

In [0]: from petl.interactive import etl
        tbl = [['foo', 'bar'], ['a', 1], ['b', 2]]
        etl(tbl)
petlx.ipython.displayall(tbl)[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]: from petl.interactive import etl
        import petlx.ipython
        tbl = [['foo', 'bar'], ['a', 1], ['b', 2]]
        etl(tbl).displayall()

New in version 0.5.

Deprecated since version 0.6.

The petl.interactive module supports _repr_html_ as of 0.13.1 so this function is not necessary. E.g., the following should give an HTML rendering of the table inline within an iPython notebook:

In [0]: from petl.interactive import etl
        tbl = [['foo', 'bar'], ['a', 1], ['b', 2]]
        etl(tbl)        

Project Versions

Previous topic

Tabix (pysam)

Next topic

Variant Call Format Utilities (PyVCF)

This Page