HTML Assembler

Generate summary pages of BEL graphs in HTML.

pybel_tools.assembler.html.to_html(graph)[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('html_output.html', 'w') as file:
...     print(to_html(sialic_acid_graph), file=file)
Return type

str