From 7515f519ef7c7686073a138d0d97b4d856cfc8a1 Mon Sep 17 00:00:00 2001 From: trgiangdo Date: Thu, 19 Sep 2024 12:29:02 +0700 Subject: [PATCH] doc: stop supporting python 3.8 --- docs/release-notes/index.md | 3 ++ .../articles/complete_application/index.md | 4 +-- docs/tutorials/articles/dataiku/index.md | 36 +++++++++---------- .../articles/understanding_gui/index.md | 6 ++-- .../articles/understanding_gui/src/step_05.py | 2 +- .../understanding_gui/step_05/step_05.md | 2 +- .../getting_started/index.md_template | 2 +- .../tutorials/getting_started/installation.md | 2 +- docs/userman/gui/extension/index.md | 2 +- docs/userman/index.md | 2 +- .../userman/run-deploy/deploy/linux/redhat.md | 22 ++++++------ .../userman/run-deploy/deploy/linux/ubuntu.md | 4 +-- 12 files changed, 45 insertions(+), 42 deletions(-) diff --git a/docs/release-notes/index.md b/docs/release-notes/index.md index 06cdc29f2..952e4513e 100644 --- a/docs/release-notes/index.md +++ b/docs/release-notes/index.md @@ -60,6 +60,9 @@ This is the list of changes to Taipy releases as they were published.

taipy 4.0.0

+- Taipy and all its dependencies now stop support Python 3.8.
+ The minimum supported Python version is now 3.9. +

taipy-gui 4.0.0

- Setting up styling: if a file called `taipy.css` sits next to the Python script (`.py`) that diff --git a/docs/tutorials/articles/complete_application/index.md b/docs/tutorials/articles/complete_application/index.md index 6034601cd..c2e3b9694 100644 --- a/docs/tutorials/articles/complete_application/index.md +++ b/docs/tutorials/articles/complete_application/index.md @@ -8,7 +8,7 @@ img: complete_application/step_04/images/result.png --- !!! note "Supported Python versions" - Taipy requires **Python 3.8** or newer. + Taipy requires **Python 3.9** or newer. This tutorial guide will walk you through creating a complete application from the front end to the back end. You don't need any prior knowledge to complete this tutorial. @@ -29,7 +29,7 @@ comparison of various predictive outcomes. Three packages have to be installed: - 1. **Taipy** package, it requires Python 3.8 or newer; + 1. **Taipy** package, it requires Python 3.9 or newer; 2. **scikit-learn**: A Machine-Learning package that will be used in the Tutorial user code; diff --git a/docs/tutorials/articles/dataiku/index.md b/docs/tutorials/articles/dataiku/index.md index 981a021ae..5a6aa97ce 100644 --- a/docs/tutorials/articles/dataiku/index.md +++ b/docs/tutorials/articles/dataiku/index.md @@ -23,10 +23,10 @@ Dataiku's data processing capabilities with Taipy's task orchestration and data # Simple Integration: Visualization -We'll cover how to extract and display -information from Dataiku projects. You'll be able to visualize various data and metrics from your -Dataiku projects. Remember, we'll utilize the `dataiku-api-client` for retrieving information when -building applications outside the Dataiku ecosystem. If you're following the first tutorial, you can +We'll cover how to extract and display +information from Dataiku projects. You'll be able to visualize various data and metrics from your +Dataiku projects. Remember, we'll utilize the `dataiku-api-client` for retrieving information when +building applications outside the Dataiku ecosystem. If you're following the first tutorial, you can directly use the `dataiku` package. ## Setting Up Your Environment @@ -515,18 +515,18 @@ interaction between the end user and its data and models. # Taipy Application in Dataiku DSS -We'll begin by developing an application directly within Dataiku DSS. This approach allows you to -utilize the comprehensive dataiku package, packed with powerful features, and seamlessly integrate +We'll begin by developing an application directly within Dataiku DSS. This approach allows you to +utilize the comprehensive dataiku package, packed with powerful features, and seamlessly integrate your Taipy application into your existing ecosystem. !!! warning "Taipy Application in Dataiku DSS" - This has some limitations when it comes to publishing the application as a web - app. Creating a web application through Code Studio sometimes results in an - unexpected failure. + This has some limitations when it comes to publishing the application as a web + app. Creating a web application through Code Studio sometimes results in an + unexpected failure. ## Prerequisites: - Ensure that [Code Studios](https://knowledge.dataiku.com/latest/code/work-environment/tutorial-first-code-studio.html) is enabled for your instance. -- You must have a [Code Environment](https://doc.dataiku.com/dss/latest/code-envs/index.html) with Taipy installed and Python version 3.8 or higher. +- You must have a [Code Environment](https://doc.dataiku.com/dss/latest/code-envs/index.html) with Taipy installed and Python version 3.9 or higher. ## Step-by-Step Guide: @@ -563,7 +563,7 @@ You can either name your new template or import one using the dropdown arrow nex - **Visual Studio Code**: Enable the "Launch for Webapps" option. - - **Entrypoint**: Add a label (e.g., "taipy"), enable both "Launch for Webapps" and "Expose port". + - **Entrypoint**: Add a label (e.g., "taipy"), enable both "Launch for Webapps" and "Expose port". Specify an "Exposed port label" (e.g., "taipy") and the exposed port (5000, the default port for Taipy). @@ -581,7 +581,7 @@ Then, return to Code Studios to create a Code Studio using this template, which ```python .run(..., base_url="/code-studios////") -``` +``` The exposed port should be 5000, as set in the Entrypoint block. You can find these details easily in the URL: @@ -597,10 +597,10 @@ The exposed port should be 5000, as set in the Entrypoint block. You can find th ![Application Refresh](images/application_resfresh.png){width=90% : .tp-image-border} -In conclusion, integrating Dataiku with Taipy provides a powerful -solution for data processing, visualization, and scenario orchestration. -By leveraging Taipy's scenario management and Dataiku's robust capabilities, -organizations can enhance efficiency, scalability, and collaboration in their data -scenarios. This integration enables seamless interaction between Dataiku -projects and Taipy, facilitating the creation and scalability data-driven +In conclusion, integrating Dataiku with Taipy provides a powerful +solution for data processing, visualization, and scenario orchestration. +By leveraging Taipy's scenario management and Dataiku's robust capabilities, +organizations can enhance efficiency, scalability, and collaboration in their data +scenarios. This integration enables seamless interaction between Dataiku +projects and Taipy, facilitating the creation and scalability data-driven applications. diff --git a/docs/tutorials/articles/understanding_gui/index.md b/docs/tutorials/articles/understanding_gui/index.md index 307e22766..ee1f2d62d 100644 --- a/docs/tutorials/articles/understanding_gui/index.md +++ b/docs/tutorials/articles/understanding_gui/index.md @@ -8,7 +8,7 @@ img: understanding_gui/step_07/images/result.png --- !!! note "Supported Python versions" - Taipy requires **Python 3.8** or newer. + Taipy requires **Python 3.9** or newer. Welcome to the **Taipy Tutorial**! Learn to build interactive web applications effortlessly. @@ -37,13 +37,13 @@ accordingly. ### Installation -Ensure you have Python 3.8 or newer, then install Taipy: +Ensure you have Python 3.9 or newer, then install Taipy: ```bash pip install taipy ``` -For the NLP feature (Python 3.8 to 3.10), install: +For the NLP feature (Python 3.9 to 3.10), install: ```bash pip install torch transformers scipy diff --git a/docs/tutorials/articles/understanding_gui/src/step_05.py b/docs/tutorials/articles/understanding_gui/src/step_05.py index 68a34eb68..8e2d67752 100644 --- a/docs/tutorials/articles/understanding_gui/src/step_05.py +++ b/docs/tutorials/articles/understanding_gui/src/step_05.py @@ -8,7 +8,7 @@ tokenizer = AutoTokenizer.from_pretrained(MODEL) model = AutoModelForSequenceClassification.from_pretrained(MODEL) -# Torch is, for now, only available for the Python version between 3.8 and 3.10. +# Torch is, for now, only available for the Python version between 3.9 and 3.10. # If you cannot install these packages, just return a dictionary of random numbers for the `analyze_text(text).` def analyze_text(text): # Run for Roberta Model diff --git a/docs/tutorials/articles/understanding_gui/step_05/step_05.md b/docs/tutorials/articles/understanding_gui/step_05/step_05.md index 357250155..58a2c86b4 100644 --- a/docs/tutorials/articles/understanding_gui/step_05/step_05.md +++ b/docs/tutorials/articles/understanding_gui/step_05/step_05.md @@ -45,7 +45,7 @@ into play in Part 2 when we wrap a GUI around this NLP engine. Before executing this step, you should have `pip install torch` and `pip install transformers`. The model will be downloaded and utilized in this code snippet. Note that Torch is currently -only accessible for Python versions between 3.8 and 3.10. +only accessible for Python versions between 3.9 and 3.10. If you encounter difficulties installing these packages, you can simply provide a dictionary of random numbers as the output for the `analyze_text(text)` function. diff --git a/docs/tutorials/getting_started/index.md_template b/docs/tutorials/getting_started/index.md_template index 1c69b16bb..749429ddb 100644 --- a/docs/tutorials/getting_started/index.md_template +++ b/docs/tutorials/getting_started/index.md_template @@ -9,7 +9,7 @@ first application with ease. # Installation with pip -1. **Prerequisites**: Ensure you have Python (**version 3.8 or later**) and +1. **Prerequisites**: Ensure you have Python (**version 3.9 or later**) and [pip](https://pip.pypa.io) installed. 2. **Installation Command**: Run the following in your terminal or command prompt: diff --git a/docs/tutorials/getting_started/installation.md b/docs/tutorials/getting_started/installation.md index 2a0a5201a..55412c8c6 100644 --- a/docs/tutorials/getting_started/installation.md +++ b/docs/tutorials/getting_started/installation.md @@ -8,7 +8,7 @@ powerful web applications. # Prerequisite -Before installing Taipy, ensure you have Python (**version 3.8 or later**) and +Before installing Taipy, ensure you have Python (**version 3.9 or later**) and [pip](https://pip.pypa.io) installed on your system. If you don't have pip installed, you can follow these steps to install it: diff --git a/docs/userman/gui/extension/index.md b/docs/userman/gui/extension/index.md index dd5cea6f5..3e61c41fe 100644 --- a/docs/userman/gui/extension/index.md +++ b/docs/userman/gui/extension/index.md @@ -141,7 +141,7 @@ its elements: To create and use custom visual elements, you need to install the following: - Taipy GUI 2.0 or higher (included in Taipy and Taipy Enterprise). -- Python 3.8 or higher. +- Python 3.9 or higher. - If you need to create [dynamic custom visual elements](dynamic_element/index.md), you also need to install [Node.js](https://nodejs.org) (version 18 or above).
Note that this comes with `npm`, the Node Package Manager.
diff --git a/docs/userman/index.md b/docs/userman/index.md index f6a2cd9bf..74c002319 100644 --- a/docs/userman/index.md +++ b/docs/userman/index.md @@ -8,7 +8,7 @@ complete Taipy application. !!! note "Supported Python versions" - Taipy requires **Python 3.8** or newer. + Taipy requires **Python 3.9** or newer. # Quick Access diff --git a/docs/userman/run-deploy/deploy/linux/redhat.md b/docs/userman/run-deploy/deploy/linux/redhat.md index 7c25118fb..569090587 100644 --- a/docs/userman/run-deploy/deploy/linux/redhat.md +++ b/docs/userman/run-deploy/deploy/linux/redhat.md @@ -7,23 +7,23 @@ Server [uWSGI](https://uwsgi-docs.readthedocs.io/en/latest/) and the Web Server ## Upgrading Python -Most _RHEL_ are delivered with a Python version older than 3.8 which is the oldest Python version -supported by Taipy. If you are in that case, please install Python 3.8 (or newer): +Most *RHEL* are delivered with a Python version older than 3.9 which is the oldest Python version +supported by Taipy. If you are in that case, please install Python 3.9 (or newer): ``` sudo dnf install -y gcc openssl-devel bzip2-devel libffi-devel make -wget https://www.python.org/ftp/python/3.8.12/Python-3.8.12.tgz -tar xzf Python-3.8.12.tgz -rm -rf Python-3.8.12.tgz -cd Python-3.8.12 +wget https://www.python.org/ftp/python/3.9.12/Python-3.9.12.tgz +tar xzf Python-3.9.12.tgz +rm -rf Python-3.9.12.tgz +cd Python-3.9.12 sudo ./configure --enable-optimizations sudo make altinstall cd .. -sudo rm -r Python-3.8.12 +sudo rm -r Python-3.9.12 ``` !!! info This tutorial specifies the Python version for each command. If your default version is different, you must - replace `python3.8` with `python`. + replace `python3.9` with `python`. ## Prepare your machine @@ -39,7 +39,7 @@ The following software should be installed on your target machine: You can install all of these packages by running the following command: ``` sudo dnf install -y nginx -python3.8 -m pip install uwsgi gevent +python3.9 -m pip install uwsgi gevent sudo mv `pwd`/.local/bin/uwsgi /usr/bin/uwsgi sudo restorecon /usr/bin/uwsgi ``` @@ -67,11 +67,11 @@ taipy On your local machine, start the application by doing: ```console -$ python3.8 -m pip install -r requirements.txt +$ python3.9 -m pip install -r requirements.txt Collecting taipy ... Successfully installed taipy -$ python3.8 app.py +$ python3.9 app.py * Server starting on http://127.0.0.1:5000 * Serving Flask app 'Taipy' (lazy loading) * Environment: production diff --git a/docs/userman/run-deploy/deploy/linux/ubuntu.md b/docs/userman/run-deploy/deploy/linux/ubuntu.md index 3f62c520c..e7d4086dc 100644 --- a/docs/userman/run-deploy/deploy/linux/ubuntu.md +++ b/docs/userman/run-deploy/deploy/linux/ubuntu.md @@ -6,8 +6,8 @@ ## Ubuntu versions below 20.04 -In versions before *Ubuntu 20.04*, the pre-installed Python versions are older than 3.8, the -oldest version supported by Taipy. If you are in that case, please install Python 3.8 or above. +In versions before *Ubuntu 20.04*, the pre-installed Python versions are older than 3.9, the +oldest version supported by Taipy. If you are in that case, please install Python 3.9 or above. ## Prepare your machine