benmaier / netwulf

Interactive visualization of networks based on Ulf Aslak's d3 web app.
MIT License
294 stars 26 forks source link

Object of type 'set' is not JSON serializable #11

Closed chaoyue729 closed 5 years ago

chaoyue729 commented 5 years ago

when i try the third example `import networkx as nx ...: import community ...: from netwulf import visualize ...: ...: G = nx.random_partition_graph([10,10,10],.25,.01) ...: bb = community.best_partition(G) # dict of node-community pairs ...: nx.set_node_attributes(G, bb, 'group') ...: ...:

In [6]: visualize(G)`

benmaier commented 5 years ago

yup, I fixed that yesterday but haven't had time to push to PyPi so far. I did that now, so this should work with version 0.0.13

chaoyue729 commented 5 years ago

yup, I fixed that yesterday but haven't had time to push to PyPi so far. I did that now, so this should work with version 0.0.13

i have already update the package, Thanks ! another issue is how to close the session in ipython?

benmaier commented 5 years ago

in the python or IPython shell, the KeyboardInterrupt-signal closes the session, i.e. Ctrl+C. In a Jupyter notebook, press the stop button!

On Mar 29, 2019, at 03:34, Qcy notifications@github.com wrote:

yup, I fixed that yesterday but haven't had time to push to PyPi so far. I did that now, so this should work with version 0.0.13

i have already update the package, Thanks ! another issue is how to close the session in ipython?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/benmaier/netwulf/issues/11#issuecomment-477843119, or mute the thread https://github.com/notifications/unsubscribe-auth/AKOzvHq48qGCsps5K17zWDC3ztZlc33Uks5vbXvEgaJpZM4cQF6I.

benmaier commented 5 years ago

closing this, feel free to open a new one for other issues