mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-19 18:27:29 -05:00
* WIP: start to use the PyScriptTests machinery to test the examples * factor test_hello_world out of test_examples * B011 forbids 'assert False' in tests because python -O remove asserts. Thank you, I knew that. * improve test_simple_clock and remove it from test_examples * test_altair * test_bokeh * rename * kill the parametrized test_example and write individual tests for each of them * test_kmeans it's slow, increase the timeout * improve these xfail * kill wait_for_load, no longer needed * write the name of the issue * add issue number * add a trick which I discovered to run test interactively * move the docstring inside the class
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