<script src="https://cdn.jsdelivr.net/pyodide/v0.25.0/full/pyodide.js"></script>

–>

Ticker sample (copy into your page)

Roles: .md = text + HTML shell · model.py = numbers · ticker.js = Pyodide load + time loop + Plotly

Index i: 0  | 

Loading…

Paste this after the HTML block (same page as the includes for Plotly + Pyodide):

<script>
  window.__TICKER_MODEL_PY__ = "/assets/samples/pyodide-ticker-example/model.py";
</script>
<script src="/assets/samples/pyodide-ticker-example/ticker.js"></script>

(Use a real layout with Plotly + Pyodide in <head>, same as learning/physics.)