googlecolab / colabtools

Python libraries for Google Colaboratory
Apache License 2.0
2.2k stars 722 forks source link

Support Python 3.11 by default #3190

Closed johnnynunez closed 4 days ago

johnnynunez commented 2 years ago

Yeah! Python 3.11 support please. It should be the default. Python 3.11 is between 10-60% faster than Python 3.10. On average, we measured a 1.25x speedup on the standard benchmark suite. See Faster CPython for details. https://docs.python.org/3.11/whatsnew/3.11.html https://www.phoronix.com/news/Python-3.11-Released

Benchmark https://www.phoronix.com/review/python-311-performance

mayankmalik-colab commented 2 years ago

We are working on Python upgrade, along with some other imp features. We will be more consistent with upgrades going forward.

adamjstewart commented 1 year ago

PyTorch doesn't even support Python 3.11 yet. 3.10 is more realistic.

johnnynunez commented 1 year ago

PyTorch doesn't even support Python 3.11 yet. 3.10 is more realistic.

PyTorch is support python 3.11 partially. The problem is that torchvision among other libraries are blocked from updating because they depend on anaconda (which has already expressly said that it is working on adding python 3.11), since there are libraries like libpng that are in anaconda and torchvision makes use of them.

adamjstewart commented 1 year ago

Ah true, it's supported on Linux, which is all we really care about. I still think the second most recent minor version is a better default. That's what package managers like Conda/Homebrew/Spack default to.

adamjstewart commented 1 year ago

TensorFlow does not yet support 3.11, which Google is probably more concerned about 😆

johnnynunez commented 1 year ago

Ah true, it's supported on Linux, which is all we really care about. I still think the second most recent minor version is a better default. That's what package managers like Conda/Homebrew/Spack default to.

Screenshot 2023-01-17 at 23 45 59

https://pytorch.org/blog/PyTorch-1.13-release/ It's on PyTorch documentation.

johnnynunez commented 1 year ago

TensorFlow does not yet support 3.11, which Google is probably more concerned about 😆

if you look at the issues the next version will already be compatible.

johnnynunez commented 1 year ago

@mayankmalik-colab Python 3.11 is out in anaconda https://github.com/ContinuumIO/anaconda-issues/issues/13082#issuecomment-1386874942

conda create -n py311 python=3.11
earlev4 commented 1 year ago

We are working on Python upgrade, along with some other imp features. We will be more consistent with upgrades going forward.

Hi @mayankmalik-colab. Is there any status on the Python upgrade and/or other improved features. Thanks so much!

ZetiMente commented 11 months ago

Hi! It is now December and would love to have Python 3.11 in Colab... Is this in the works to be released soon or is there an easy way for me to upgrade on my own? Thanks!

ChristopherEeles commented 5 months ago

Any updates on this? Python 3.10 is pretty old now.

cameronraysmith commented 3 months ago

Maybe we should imagine we need to help users migrate to Project IDX to get this support going forward.

ZetiMente commented 1 month ago

wen!?

jhamman commented 1 month ago

@metrizable, @mayankmalik-colab, @cperry-goog - Much of the Scientific Python ecosystem (numpy, scipy, etc.) will start dropping support for Python 3.10 this quarter based on Spec 0000. Perhaps this is the time to bump Colab to 3.11?

EvanWiederspan commented 4 days ago

We will be updating to Python 3.11 in early January, see https://github.com/googlecolab/colabtools/issues/4935