Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to Python 3.11 #4935

Open
EvanWiederspan opened this issue Nov 7, 2024 · 3 comments
Open

Upgrade to Python 3.11 #4935

EvanWiederspan opened this issue Nov 7, 2024 · 3 comments
Assignees
Labels
announce For announcements for upcoming VM image updates

Comments

@EvanWiederspan
Copy link

EvanWiederspan commented Nov 7, 2024

Upgrade to Python 3.11

To provide additional features from Python 3.11 to our users, **Colab has upgraded to Python 3.11. This upgrade provides benefits for the packages we pre-install in our runtime, and brings Colab into alignment with the cadence of final regular bug fix releases for Python versions.

Colab’s fallback runtime version

Using the fallback runtime version temporarily allows access to the last version of the runtime before the upgrade described above, and is available until early February. Its purpose is to provide a temporary mechanism for users to more smoothly upgrade their notebooks to be compatible with Colab’s current runtime version. This is available from the Command Palette via the "Use fallback runtime version" command when connected to a runtime. Of note, this setting does not persist across sessions – the command will need to be invoked on each new session.

@francesco-ballarin
Copy link

Hi @EvanWiederspan ,
this is great news!

Once the upgrade rolls out on Colab instances, can you reply to this issue saying that the upgrade is live, so that anyone who subscribed to the issue gets notified about that?
We can track the backend-info repository, but (as you note there) there typically is a delay of a few days between the commit there and the actual deployment on Colab instances.

Thanks,
Francesco

@metrizable
Copy link
Contributor

Python 3.11 is now live in runtimes! Python 3.11 offers several improvements, including:

  • 10-60% faster than Python 3.10 -- a 1.25x speedup on standard benchmarks
  • exceptions -- exception groups, except*, notes
  • multiple typing features
  • security and bug fixes
  • multiple improvements to many modules

Enjoy!

If you still need a runtime with Python 3.10, invoke the command "Use fallback runtime version" from the Command Palette.

@eyaler
Copy link

eyaler commented Jan 16, 2025

@metrizable this update is a major breakage, and there is no clear indication of the change made, which would have saved lengthy debugging. to the very least it should appear in the release notes which is not updated since 2024-11-11. but i think a banner notification is appropriate. moreover, a banner notification with a warning of the upcoming upgrade would have also been useful. these recurring, silent, surprising and not easily reversible in the longer term breaking changes make google colab be a less and less viable tool to use in education. no joy!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
announce For announcements for upcoming VM image updates
Projects
None yet
Development

No branches or pull requests

4 participants