If you find any issues please create a Github Issue with as much info as possible, the best way is a submit reproducible notebook and some screenshots of the dashboard.
Dependencies:
- Node.js
- Python
- Optional: Task
Install dependencies
task js-install
Create Python env
cd python
hatch env create
hatch shell
task download-assets download-testdata
With both environments ready we can have a nice iteration cycle between JS and Python:
- Start webpack in watch mode, this will also place the bundle files in the nbconvert and voila static directories.
task js-dev
- Now you can start the Voila server and iterate quickly on the JS or Python code.
Start the Voila in the examples directory:
task voila-examples
A system based on docker is provided and it's the same the CI system runs.
- Start Selenium locally
task selenium-server
or in Dockertask selenium-docker
- Start voila server locally:
make voila-examples
- Run pytest locally against Selenium
# Run a group of tests
PYTEST_M=layouts task pytest
# Run a specific test
PYTEST_K=ipysheet task pytest
# Run all tests
task pytest-all
To generate/update the test baselines just run the tests
brew install chromedriver
brew install selenium-server-standalone
brew install --cask google-chrome
task docs
task docs-serve