Ideogram Assembler

Assemble a BEL graph as an ideogram chart in HTML..

pybel_tools.assembler.ideogram.to_html(graph, chart=None)[source]

Render the graph as an HTML string.

Common usage may involve writing to a file like:

>>> from pybel.examples import sialic_acid_graph
>>> with open('ideogram_output.html', 'w') as file:
...     print(to_html(sialic_acid_graph), file=file)
Return type

str

pybel_tools.assembler.ideogram.to_jupyter(graph, chart=None)[source]

Render the graph as JavaScript in a Jupyter Notebook.

Return type

Javascript