Embedding Visualization in HTML
General
This post is mostly a collection of different things I've wanted to try embedding in HTML and is more of a sandbox than a real post.
Compiler Explorer
Jupyterlite
Copy and paste the Python code into the box below to visualize a protein molecule.
%pip install py3Dmol
import py3Dmol
p = py3Dmol.view(query='mmtf:1ycr')
p.setStyle({'cartoon': {'color':'spectrum'}})
p