py3Dmol supports the following surface types:
import py3Dmol
In the structure below (HLA complex with antigen peptide pVR), we add a solvent excluded surface (SES) to the heavy chain to highlight the binding pocket for the antigen peptide (rendered as spheres).
viewer = py3Dmol.view(query='pdb:5XS3')
heavychain = {'chain':'A'}
lightchain = {'chain':'B'}
antigen = {'chain':'C'}
viewer.setStyle(heavychain,{'cartoon':{'color':'blue'}})
viewer.setStyle(lightchain,{'cartoon':{'color':'yellow'}})
viewer.setStyle(antigen,{'sphere':{'colorscheme':'orangeCarbon'}})
viewer.addSurface(py3Dmol.SES,{'opacity':0.9,'color':'lightblue'}, heavychain)
viewer.show()
You appear to be running in JupyterLab (or JavaScript failed to load for some other reason). You need to install the 3dmol extension:
jupyter labextension install jupyterlab_3dmol