Skip to content

Commit 997b19a

Browse files
sfc-gh-jriekejriekeCortex Code
authored
Update supported Python versions: drop 3.9, add 3.14 (#1436)
Streamlit no longer supports Python 3.9 and now supports 3.14. Update all references across docs and Dockerfiles (bumped to 3.12-slim). .... Generated with [Cortex Code](https://docs.snowflake.com/en/user-guide/cortex-code/cortex-code) Co-authored-by: Johannes Rieke <johannes.rieke@gmail.com> Co-authored-by: Cortex Code <noreply@snowflake.com>
1 parent 060acf9 commit 997b19a

7 files changed

Lines changed: 9 additions & 9 deletions

File tree

content/deploy/tutorials/docker.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Here's an example `Dockerfile` that you can add to the root of your directory. i
5353
```docker
5454
# app/Dockerfile
5555
56-
FROM python:3.9-slim
56+
FROM python:3.12-slim
5757
5858
WORKDIR /app
5959
@@ -82,10 +82,10 @@ Let’s walk through each line of the Dockerfile :
8282
1. A `Dockerfile` must start with a [`FROM`](https://docs.docker.com/engine/reference/builder/#from) instruction. It sets the [Base Image](https://docs.docker.com/glossary/#base-image) (think OS) for the container:
8383

8484
```docker
85-
FROM python:3.9-slim
85+
FROM python:3.12-slim
8686
```
8787

88-
Docker has a number of official Docker base images based on various Linux distributions. They also have base images that come with language-specific modules such as [Python](https://hub.docker.com/_/python). The `python` images come in many flavors, each designed for a specific use case. Here, we use the `python:3.9-slim` image which is a lightweight image that comes with the latest version of Python 3.9.
88+
Docker has a number of official Docker base images based on various Linux distributions. They also have base images that come with language-specific modules such as [Python](https://hub.docker.com/_/python). The `python` images come in many flavors, each designed for a specific use case. Here, we use the `python:3.12-slim` image which is a lightweight image that comes with the latest version of Python 3.12.
8989

9090
<Tip>
9191

content/deploy/tutorials/kubernetes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Docker builds images by reading the instructions from a `Dockerfile`. A `Docke
9090
Here's an example `Dockerfile` that you can add to the root of your directory.
9191

9292
```docker
93-
FROM python:3.9-slim
93+
FROM python:3.12-slim
9494
9595
RUN groupadd --gid 1000 appuser \
9696
&& useradd --uid 1000 --gid 1000 -ms /bin/bash appuser

content/develop/concepts/custom-components/components-v1/v1-component-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ To make the process of creating bi-directional Streamlit Components easier, we'v
9393

9494
To build a Streamlit Component, you need the following installed in your development environment:
9595

96-
- Python 3.9 - Python 3.13
96+
- Python 3.10 - Python 3.14
9797
- Streamlit
9898
- [nodejs](https://nodejs.org/en/)
9999
- [npm](https://www.npmjs.com/) or [yarn](https://yarnpkg.com/)

content/develop/tutorials/llms/llm-quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Bonus: Deploy the app on Streamlit Community Cloud!
2828

2929
## Prerequisites
3030

31-
- Python 3.9+
31+
- Python 3.10+
3232
- Streamlit
3333
- LangChain
3434
- [OpenAI API key](https://platform.openai.com/account/api-keys?ref=blog.streamlit.io)

content/get-started/installation/command-line.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ computer is properly set up. More specifically, you’ll need:
1616

1717
1. **Python**
1818

19-
We support [version 3.9 to 3.13](https://www.python.org/downloads/).
19+
We support [version 3.10 to 3.14](https://www.python.org/downloads/).
2020

2121
1. **A Python environment manager** (recommended)
2222

content/kb/FAQ/sanity-checks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ guaranteeing compatibility with _at least_ the last three minor versions of Pyth
1515
As new versions of Python are released, we will try to be compatible with the new version as soon
1616
as possible, though frequently we are at the mercy of other Python packages to support these new versions as well.
1717

18-
Streamlit currently supports versions 3.9, 3.10, 3.11, 3.12, and 3.13 of Python.
18+
Streamlit currently supports versions 3.10, 3.11, 3.12, 3.13, and 3.14 of Python.
1919

2020
## Check #1: Is Streamlit running?
2121

python/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.9-slim
1+
FROM python:3.12-slim
22

33
COPY sources.list /etc/apt/sources.list
44

0 commit comments

Comments
 (0)