Ian did it for ipywidgets, etc see here: https://github.com/QuantStack/ipycytoscape/pull/247 We just need to copy paste the code and test if it's working here.