springer-math / Mathematics-of-Epidemics-on-Networks

Source code accompanying 'Mathematics of Epidemics on Networks' by Kiss, Miller, and Simon http://www.springer.com/us/book/9783319508047 . Documentation for the software package is at https://epidemicsonnetworks.readthedocs.io/en/latest/
MIT License
151 stars 61 forks source link

interactive visualization: #24

Open joelmiller opened 5 years ago

joelmiller commented 5 years ago

I would be great to support interactive visualization:

  from ipywidgets import interact, fixed
  interact(sim.display, time=[0, 10], node_size = 4 )

Originally posted by @chengjun in https://github.com/springer-math/Mathematics-of-Epidemics-on-Networks/issues/16#issuecomment-476106234

joelmiller commented 5 years ago

Hi @chengjun -

Thanks for the suggestion. Can you give me a little more information about how you'd like to interact with it?

I haven't had any experience with ipywidgets, so it may take some time before I'm able to implement it.