--

There are two ways to tell PyScript how to find your code.

With a standard HTML <script> tag whose type attribute is either py (for Pyodide) or mpy (for MicroPython). This is the recommended way.

1. Via the bespoke <py-script> (Pyodide) and <mpy-script> (MicroPython) tags.

2. Historically, <py-script> used to be the only way to reference your code.

Just modified to the latest version. Thanks Alan.

--

--

Ravi | Python ✍️
Ravi | Python ✍️

Written by Ravi | Python ✍️

💻 Software Engineer | Tech Explorer | Tech Storyteller | Astronomy Enthusiast | Writing About the Art of Coding (Python) | Books | #Programming #Python

No responses yet