mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-19 18:27:29 -05:00
* add plugins testing utils module * add plugins manager fixture and init plugins tests helper in conftest * add _custom_elements attribute to pyscript.Plugin to allow plugins to track the CE they register * add test for py_tutor * remove unrelated code from prims js script * ensure a Plugin always has the app attribute and improve tests * add tests for py_tutor create_code_section * implement PluginsManager reset and add teardown on plugins_manager fixture to clean it up after a test * add test to check if plugin has been registered * add docstrings to new tests * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * add docstrings to plugins tester * add changes from main * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * lint * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * add todo to add remaining PluginsManager lifecycle events Co-authored-by: Fabio Pliger <fpliger@anaconda.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
PyScript Demonstrator
A simple webapp to demonstrate the capabilities of PyScript.
Getting started
-
If you don't already have Node.js, install it. The official installer for the LTS version of Node is available from nodejs.org.
-
If you don't already have Rollup, install it. Rollup can be installed as a global resource using:
$ npm install --global rollup -
Install the demo apps requirements:
$ npm install -
Start the server:
$ npm run devThis will compile the resources for the app, and start the development server.
-
When the compilation completes, it will display something like:
Your application is ready~! 🚀 - Local: http://localhost:8080 - Network: Add `--host` to expose ────────────────── LOGS ──────────────────Once this is visible, open a browser at http://localhost:8080. This will provide a list of demos that you can run.
More information
There is a forum PyScript where you can discuss the project or ask questions at https://community.anaconda.cloud/c/pyscript