diff --git a/README.md b/README.md index c40cab4..2cd5506 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,13 @@ pip install -e . voila --Voila.config_file_paths=./ OPTIMADE-Client.ipynb ``` +For development: + +```bash +pip install -e .[dev] +pre-commit install +``` + ## Test and deploy Once the changes are made, push to `dev-dokku` server to see if the new changes work well by running: diff --git a/tools_optimade_client/upload.py b/tools_optimade_client/upload.py index 179f7a8..a5644d1 100644 --- a/tools_optimade_client/upload.py +++ b/tools_optimade_client/upload.py @@ -14,6 +14,7 @@ QE_INPUT_APP_URL_PROD = "https://qeinputgenerator.materialscloud.io" QE_INPUT_APP_URL_DEV = "https://qeinputgenerator.matcloud.xyz" + class QEInputButton(ipw.HTML): """QE Input Generator upload button @@ -67,7 +68,9 @@ def __init__(self, button_style: Union[ButtonStyle, str] = None, **kwargs) -> No else: self._button_style = ButtonStyle.DEFAULT - self._default_domain = QE_INPUT_APP_URL_DEV if DEVELOPMENT_MODE else QE_INPUT_APP_URL_PROD + self._default_domain = ( + QE_INPUT_APP_URL_DEV if DEVELOPMENT_MODE else QE_INPUT_APP_URL_PROD + ) kwargs.pop("value", None) super().__init__(