Node.js v14.14.0 is required to compile TypeScript files.
$ npm install
$ npm run build:dev
Watch for files changes
$ npm run watch
Production builds
$ npm run build:prd
$ pip install -e .
$ optuna-dashboard sqlite:///db.sqlite3
Environment variables for development
If you set OPTUNA_DASHBOARD_AUTO_RELOAD=1
, the server will automatically restart when the source codes are changed.
$ OPTUNA_DASHBOARD_AUTO_RELOAD=1 optuna-dashboard sqlite:///db.sqlite3
$ tox -e ALL
$ python -m unittest
or
$ pip install tox
$ tox -e py39
Please run following commands, then check screenshots in tmp/
directory.
$ pip install -r requirements.txt
$ python visual_regression_test.py --output-dir tmp
Note: When you run pyppeteer for the first time, it downloads the latest version of Chromium (~150MB) if it is not found on your system.
$ pip install -r requirements.txt
$ flake8
$ black --check .
$ isort . --check
$ mypy .
or
$ pip install tox
$ tox -e flake8 -e black -e mypy
$ npm run fmt
$ black .
The release process(compiling TypeScript files, packaging Python distributions and uploading to PyPI) is fully automated by GitHub Actions.
- Replace
optuna_dashboard.version.__version__
to the next version. - Create a git tag and push it to GitHub.