ucsd-ccbb / visJS2jupyter

visJS2jupyter is a tool to bring the interactivity of networks created with vis.js into jupyter notebook cells
MIT License
78 stars 17 forks source link

Mulitple plot in the same notebook are not rendering #13

Closed davidvarenne closed 6 years ago

davidvarenne commented 6 years ago

Hello, I want to thank you for this beautiful library, very helpful! I was playing with it and I tried to plot, in the same jupyter notebook, multiple Graph example. When I try to plot the second one is not rendering anything but an empty figure.

To replicate the problem is sufficient to execute the same simple plot in two different cells!

Does this sound familiar to anyone? Hope to be clear,

Thank you

davidvarenne commented 6 years ago

ok, solve it with the time_stamp parameter!

brinrosenthal commented 6 years ago

hi david, glad the package is helpful to you!

setting the graph_id argument to a unique integer for every graph you have within one notebook will also solve this problem. time_stamp will still work, but is a deprecated argument