Visualization¶
mujou.viz.to_html ¶
Return a page of HTML that draws the graph of root.
The page shows the children of root; click a network to open it, and
a node to see its ports and their specs. A channel to a node in a closed
network goes to the network. Save the page and open it in a browser.
Example::
from pathlib import Path
import mujou.viz
Path("net.html").write_text(mujou.viz.to_html(net), "utf-8")
| RAISES | DESCRIPTION |
|---|---|
(TypeError, ValueError)
|
|