NGLView update version
adamhospital opened this issue · 0 comments
adamhospital commented
Update NGLview from 1.1.7 to 2.0.7 (or latest)
This requires changing a line of code in each NGLview cell:
From:
view = nglview.show_file(downloaded_pdb)
view.add_representation(repr_type='ball+stick', selection='all')
view._remote_call('setSize', target='Widget', args=['','600px'])
view
To:
struct_file = nglview.FileStructure(downloaded_pdb)
view = nglview.show_file(struct_file)
view.add_representation(repr_type='ball+stick', selection='all')
view._remote_call('setSize', target='Widget', args=['','600px'])
view
It should be done in all tutorials using NGLview