molviewspec-live
This website is an exeriment that lets us create interactive molecular visualziations in the browser. See examples.
Goal
Inclusion of interactive molviewspec-driven viz in webpages using the following example Quarto syntax:
```{.python .molviewspec-live}
from molviewspec import create_builder;
= create_builder();
builder = (builder
structure
.download(="https://www.ebi.ac.uk/pdbe/entry-files/download/1cbs_updated.cif")
urlformat="mmcif")
.parse(
.model_structure()
.component()
.representation()="blue")
.color(color
) builder.get_state().dumps()
Technologies
- Python Evaluation:
- pyodide - Python scientific stack in the browser via WebAssembly.
- molviewspec - Domain-specific language for molecular visualization specifications.
- Website: