Skip to content

GC.widget() ​

Return the chart as a Jupyter widget.

A cell that ends with a chart draws it, so this is only needed to keep the widget: to read the chart's events, move its zoom slider or draw another chart in its place. Needs the jupyter extra: pip install "geneviewer-py[jupyter]".

Usage ​

python
chart.widget()

chart is a GC chart.

Value ​

geneviewer.jupyter.GCWidget: The widget.

Errors ​

ErrorWhen
ImportErrorWithout anywidget.

Examples ​

python
>>> widget = chart.events(select=True).widget()  # doctest: +SKIP
>>> widget  # doctest: +SKIP
>>> widget.select  # doctest: +SKIP