You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was able to successfully add and display 2 proteins as 2 components in a single view. However, they are overlapping each other and set_coordinates does not seem to work. Please help.
------- code start --------
from nglview import NGLWidget
nglview.version=2.7.7
ipywidgets.version=7.6.2
I was able to successfully add and display 2 proteins as 2 components in a single view. However, they are overlapping each other and set_coordinates does not seem to work. Please help.
------- code start --------
from nglview import NGLWidget
viewWidget = nglview.NGLWidget()
c1 = viewWidget.add_pdbid("7d4f")
c1.set_coordinates(np.array([0, 0, 0]))
c1.add_representation('surface', color='chainindex')
#viewWidget.add_representation('surface', color='chainindex')
c2 = viewWidget.add_pdbid("6yyt")
c2.set_coordinates(np.array([80, 80, 80]))
c2.add_representation('surface', color='chainindex')
#c3 = viewWidget.add_pdbid("6xez")
#c3.set_position([80, 80, 80])
viewWidget
------- code end --------
Question about usage? Please search your issue here first: Usage questions: Please ask here first [0] #589 and Usage questions about nglview: Please ask here first [1] #785
Version report
The text was updated successfully, but these errors were encountered: