nglviewer/nglview

Protein not showing as ribbons

ONISniperOne opened this issue · 1 comments

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

image

  1. How do I turn off the atoms for the protein and show only ribbon?
  2. How do I change the height of the ipywidget
  1. How do I turn off the atoms for the protein and show only ribbon?

can you try

view.clear()
view.add_cartoon(...)
  1. How do I change the height of the ipywidget

may be view._set_size(...)

def _set_size(self, w, h):