in pyvis I always get this error: "AttributeError: 'NoneType' object has no attribute 'render'"
Solution
When initializing the Network, I added notebook=True
, this fixed the issue for me. The new code is:
from pyvis import network as net
import networkx as nx
#%%
g=net.Network(notebook=True)
nxg = nx.complete_graph(5)
g.from_nx(nxg)
#%%
g.show("example.html")
- 39 quot AttributeError attribute NoneType39 attributeerror attribute nonetype 39 quot attributeerror attribute attributeerror containers attribute nonetype 39 attribute nonetype children 39 attribute nonetype object 39 attributeerror tensorflow attribute 39 attributeerror antialias attribute 39 attributeerror attribute copy_src 39 attributeerror attribute深度 v_flag_cb_issuer_check 39 attributeerror attribute