Apr 4, 2024
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.