import py3Dmol
v = py3Dmol.view(query='1ycr',js="http://localhost/3Dmol/build/3Dmol.js") v.setStyle('cartoon') v.zoomTo() v.spin()
v.apng(100)