Closed ONISniperOne closed 5 months ago
- How do I turn off the atoms for the protein and show only ribbon?
can you try
view.clear()
view.add_cartoon(...)
- How do I change the height of the ipywidget
may be view._set_size(...)
https://github.com/nglviewer/nglview/blob/12a75bc6f0cea8fbc0f75ffc68117d010ce96cc9/nglview/widget.py#L568
How come nglview isn't showing my protein as ribbons?
create NGL viewer
view = nv.show_pytraj(traj)
Change representations
view.add_cartoon(selection="protein") view