nglviewer / nglview

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

slow shape.add_cylinder #1093

Closed Dan-Burns closed 8 months ago

Dan-Burns commented 9 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 9 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