Skip to content

Commit

Permalink
Merge pull request #1127 from Avaiga/feat/taipy#1748-stop-python3.8-s…
Browse files Browse the repository at this point in the history
…upport

Doc/taipy#1748 - Stop supporting python 3.8
  • Loading branch information
trgiangdo authored Sep 21, 2024
2 parents c44bd1c + 7515f51 commit b42b641
Show file tree
Hide file tree
Showing 12 changed files with 45 additions and 42 deletions.
3 changes: 3 additions & 0 deletions docs/release-notes/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ This is the list of changes to Taipy releases as they were published.

<h4><strong><code>taipy</code></strong> 4.0.0</h4>

- Taipy and all its dependencies now stop support Python 3.8.<br/>
The minimum supported Python version is now 3.9.

<h4><strong><code>taipy-gui</code></strong> 4.0.0</h4>

- Setting up styling: if a file called `taipy.css` sits next to the Python script (`<app>.py`) that
Expand Down
4 changes: 2 additions & 2 deletions docs/tutorials/articles/complete_application/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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;

Expand Down
36 changes: 18 additions & 18 deletions docs/tutorials/articles/dataiku/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:

Expand Down Expand Up @@ -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).

Expand All @@ -581,7 +581,7 @@ Then, return to Code Studios to create a Code Studio using this template, which

```python
<Gui>.run(..., base_url="/code-studios/<PROJECT_NAME>/<CODE_STUDIO_ID>/<EXPOSED_PORT>/")
```
```

The exposed port should be 5000, as set in the Entrypoint block. You can find these details easily in the URL:

Expand All @@ -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.
6 changes: 3 additions & 3 deletions docs/tutorials/articles/understanding_gui/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/articles/understanding_gui/src/step_05.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/getting_started/index.md_template
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/getting_started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion docs/userman/gui/extension/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).<br/>
Note that this comes with `npm`, the Node Package Manager.<br/>
Expand Down
2 changes: 1 addition & 1 deletion docs/userman/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
22 changes: 11 additions & 11 deletions docs/userman/run-deploy/deploy/linux/redhat.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
```
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions docs/userman/run-deploy/deploy/linux/ubuntu.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b42b641

Please sign in to comment.