You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Incompatibility following Google colab upgrade to Python 3.13 #1343
The package doesn't support Python 3.13 yet. With Colab upgrading the runtime default environment, it is not possible to correctly import the latest version of malariagen_data. We need to upgrade the Python version on our end, but while we navigate this, as a workaround, the runtime version can be updated manually in Google Colab.
To do this, go to "Runtime" -> "Change runtime type" -> "Runtime version" -- In the drop-down menu, select "2026.07"; this will default to using Python 3.12.13 in your session and you will be able to import the latest version of malariagen_data as normal. There is a screnshoot attached below of the option that will need updating.
Alternatively, you can install Python 3.12 (or below) directly in your runtime. Please note this might cause incompatibilities with other external packages.
I thought I should add to this issue, using an old version of the runtime, Colab initially connects and runs properly. However, after a short period of use the frontend fails to connect to the kernel.
I get HTTP 500 error request. I short version of the error message is pasted below
Error
Failed to execute cell. Could not send execute message to runtime: FetchError: Could not fetch resource at https://8080-m-s-kkb-usw4a1-5ul19fizt8va-a.us-west4-1.prod.colab.dev/api/kernelspecs?backend_version=next&authuser=0&colab-runtime-proxy-token=eyJhbGciOiJFUzI1NiIsICJraWQiOiI4Q3NZTWcifQ.eyJhdWQiOiJtLXMta2tiLXVzdzRhMS01dWwxOWZpenQ4dmEiLCAiZXhwIjoxNzg3NTg0OTY3LCAicG9ydCI6ODA4MH0.e6VkY8Ri3BMvPnFTb9wv81pDt5lU3Cb-G4mGdZugy8g0npfqv1xZiXY6XrFrYTBSahLC6sb6_bit-JtmGk0Pww: 500
The session is unrecoverable without disconnecting and deleting the runtime
Please correct me if I misunderstand what you are saying @harbi811 but it sounds like what you are saying is that if you were using a runtime that was created before the Colab update to Python 3.13, everything would work fine until a point when Colab would realise that the runtime is obsolete and disconnect from the kernel. Do you have a way to reproduce the issue?
Yes @jonbrenas apologies for the late response, this is what I mean, choosing an older version of the runtime say 2026.07 disconnects after about an hour. It is probably a Colab issue because there are multiple issues with the same error code on the Colab repo. The error itself is unhelpful and I am unable to reproduce it. My apologies, I raised it here
Thanks, @harbi811. We need to know what kind of errors users will see and most are not going to (know how to) report it, so you were very helpful in raising it here.
Hi, I tried to run PCA analyses on Colab by changing the runtime as recommended. Initially, it worked fine, but the session consistently fails before completing the analyses, responding with "Runtime disconnected". I retried multiple times, even with smaller sample sizes, but the analyses still do not complete.
Thanks, @AE-ZF. Could you share a notebook with the failing code? I suspect that has more to do with the PCA being hungry than an issue with the runtime's setup.
Thanks! I am going to investigate: the runtime disconnects after exactly 5 minutes of execution without an error message, despite not being out of resources and long before idleness should kick in.
Activity
harbi811 commentedon Aug 24, 2026
I thought I should add to this issue, using an old version of the runtime, Colab initially connects and runs properly. However, after a short period of use the frontend fails to connect to the kernel.
I get HTTP 500 error request. I short version of the error message is pasted below
The session is unrecoverable without disconnecting and deleting the runtime
jonbrenas commentedon Sep 1, 2026
Please correct me if I misunderstand what you are saying @harbi811 but it sounds like what you are saying is that if you were using a runtime that was created before the Colab update to Python 3.13, everything would work fine until a point when Colab would realise that the runtime is obsolete and disconnect from the kernel. Do you have a way to reproduce the issue?
harbi811 commentedon Sep 9, 2026
Yes @jonbrenas apologies for the late response, this is what I mean, choosing an older version of the runtime say 2026.07 disconnects after about an hour. It is probably a Colab issue because there are multiple issues with the same error code on the Colab repo. The error itself is unhelpful and I am unable to reproduce it. My apologies, I raised it here
jonbrenas commentedon Sep 9, 2026
Thanks, @harbi811. We need to know what kind of errors users will see and most are not going to (know how to) report it, so you were very helpful in raising it here.
AE-ZF commentedon Sep 13, 2026
Hi, I tried to run PCA analyses on Colab by changing the runtime as recommended. Initially, it worked fine, but the session consistently fails before completing the analyses, responding with "Runtime disconnected". I retried multiple times, even with smaller sample sizes, but the analyses still do not complete.
Is there anything we should do to fix this?
jonbrenas commentedon Sep 13, 2026
Thanks, @AE-ZF. Could you share a notebook with the failing code? I suspect that has more to do with the PCA being hungry than an issue with the runtime's setup.
AE-ZF commentedon Sep 13, 2026
Thanks, @jonbrenas, for the prompt response. Here is my notebook.
Ethiopia_PCA.ipynb
jonbrenas commentedon Sep 13, 2026
Thanks! I am going to investigate: the runtime disconnects after exactly 5 minutes of execution without an error message, despite not being out of resources and long before idleness should kick in.