diff --git a/.github/workflows/cleanup-dev-releases.yml b/.github/workflows/cleanup-dev-releases.yml new file mode 100644 index 0000000000..763674aea8 --- /dev/null +++ b/.github/workflows/cleanup-dev-releases.yml @@ -0,0 +1,15 @@ +name: Cleanup Old Pre-Releases + +on: + workflow_dispatch: # Allows manual triggering + +jobs: + cleanup: + runs-on: ubuntu-latest + steps: + - name: Cleanup old dev releases + id: cleanup + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + sh tools/release/cleanup_dev_releases.sh diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 866fb315f1..5432d672f2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -129,7 +129,7 @@ issue or PR if you're still interested in working on it. ### Python Taipy's repositories follow the [PEP 8](https://www.python.org/dev/peps/pep-0008/) and -[PEP 484](https://www.python.org/dev/peps/pep-0484/) coding convention. +[PEP 484](https://www.python.org/dev/peps/pep-0484/) coding convention. Gui variables need to be `snake_case` to be correctly converted into the `camelCase`, used for typescript variables. ### TypeScript @@ -255,17 +255,26 @@ npm run build:dev This will preserve the debugging symbols, and you will be able to navigate in the TypeScript code from your debugger. -!!!note "Web application location" - When you are developing front-end code for the Taipy GUI package, it may be cumbersome to have - to install the package over and over when you know that all that has changed is the JavaScript - bundle that makes the Taipy web app. - - By default, the Taipy GUI application searches for the front-end code in the - `[taipy-gui-package-dir]/taipy/gui/webapp` directory. - You can, however, set the environment variable `TAIPY_GUI_WEBAPP_PATH` to the location of your - choice, and Taipy GUI will look for the web app in that directory. - If you set this variable to the location where you build the web app repeatedly, you will no - longer have to reinstall Taipy GUI before you try your code again. +#### 📝A note on "Web application location" +When you are developing front-end code for the Taipy GUI package, it may be cumbersome to have +to install the package over and over when you know that all that has changed is the JavaScript +bundle that makes the Taipy web app. + +By default, the Taipy GUI application searches for the front-end code in the +`[taipy-gui-package-dir]/taipy/gui/webapp` directory. +You can, however, set the environment variable `TAIPY_GUI_WEBAPP_PATH` to the location of your +choice, and Taipy GUI will look for the web app in that directory. +If you set this variable to the location where you build the web app repeatedly, you will no +longer have to reinstall Taipy GUI before you try your code again. +In python, you can handle this with: +```python +import os +os.environ["TAIPY_GUI_WEBAPP_PATH"] = os.path.normpath( "/path/to/your/taipy/taipy/gui/webapp" ) +``` +or in bash with: +```bash +export TAIPY_GUI_WEBAPP_PATH="/path/to/your/taipy/taipy/gui/webapp" +``` ### Running the tests diff --git a/Pipfile b/Pipfile index 489894ec01..8943bc1da9 100644 --- a/Pipfile +++ b/Pipfile @@ -12,7 +12,7 @@ flask = "==3.0.0" flask-cors = "==5.0.0" flask-socketio = "==5.3.6" Flask-RESTful = ">=0.3.9" -gevent = "==23.7.0" +gevent = "==24.11.1" gevent-websocket = "==0.10.1" gitignore-parser = "==0.1.1" kthread = "==0.2.3" diff --git a/doc/gui/examples/charts/matplotlib/image.py b/doc/gui/examples/charts/matplotlib/image.py new file mode 100644 index 0000000000..63aa977553 --- /dev/null +++ b/doc/gui/examples/charts/matplotlib/image.py @@ -0,0 +1,83 @@ +# Copyright 2021-2024 Avaiga Private Limited +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on +# an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. +# ----------------------------------------------------------------------------------------- +# To execute this script, make sure that the taipy-gui package is installed in your +# Python environment and run: +# python