-
Notifications
You must be signed in to change notification settings - Fork 217
Open
Labels
Description
Is your feature request related to a problem? Please describe.
Marimo is a new interactive python environment. I would like to use py3Dmol inside it.
Describe the solution you'd like
I would like to use py3Dmol with marimo
Here is a minimal use case:
import marimo
__generated_with = "0.12.8"
app = marimo.App(width="medium")
@app.cell
def _():
import marimo as mo
import py3Dmol
return mo, py3Dmol
@app.cell
def _(py3Dmol):
p = py3Dmol.view(query="pdb:1ATP")
p.setStyle({"cartoon": {"color": "spectrum"}})
p.zoomTo()
p.show()
return (p,)
@app.cell
def _(mo, p):
mp = mo.ui.anywidget(p)
mp
return (mp,)
if __name__ == "__main__":
app.run()
Reactions are currently unavailable
