nglviewer / nglview

Jupyter widget to interactively view molecular structures and trajectories
http://nglviewer.org/nglview/latest/
Other
824 stars 134 forks source link

slow shape.add_cylinder #1093

Closed Dan-Burns closed 10 months ago

Dan-Burns commented 11 months ago

I'm adding cylinders in a loop and it seems to be very slow. On the order of a dozen seconds to add several dozen cylinders. Is there a way to speed this up?

hainm commented 11 months ago

I don't know if there is a way in nglview, please ask NGL developers here. They might give you some hint in javascript and you can execute custom JS code via view._js

https://github.com/nglviewer/ngl/issues