type: string
we can attach webweb to an existing html element by setting the attachWebwebToElementWithId
parameter. This is useful for embedding webweb.
showing:
from webweb import Web
# Instantiate webweb object
web = Web([[0, 1], [1, 2], [2, 3], [3, 4], [4, 5]])
# attach the visualization to a given element (no '#')
web.display.attachWebwebToElementWithId = 'myElement'
# show the visualization
web.show()
{
"display": {
"attachWebwebToElementWithId": "myElement"
},
"networks": {
"webweb": {
"layers": [
{
"edgeList": [
[
0,
1
],
[
1,
2
],
[
2,
3
],
[
3,
4
],
[
4,
5
]
],
"metadata": null,
"nodes": {}
}
]
}
},
"title": "webweb"
}