Skip to content

Migration ​

Version 2.0 replaces the alpha wrapper with the current PyScript API.

Previous APICurrent replacement
PyScript rendering <py-script>Renders <script type="py"> with raw Python text
outputtarget with an element ID
outputMode, stdOut, stdErr, execIdRemoved; use current PyScript display, terminal, and event APIs
PyReplPyEditor; PyRepl remains a deprecated alias
PyEnv with YAML packagesconfig with a packages array or PyConfig with JSON/TOML
PyBox, PyButton, PyInputBox, PyTitleNative Solid/HTML elements; bind Python events with PyScript's when API
PyRegisterWidgetNative components and the current PyScript DOM API
UMD bundleESM and CommonJS browser/server exports with TypeScript declarations

The alpha-only widget exports were removed because current PyScript does not implement them. See the current PyScript documentation for Python-side migration.

Released under the MIT License.