I’ve been using ModelingToolkit.jl on Google Colab recently, and I’ve run into a major issue: the compilation time is extremely large. In my case, the first-time compilation of ModelingToolkit took around 3,400–3,500 seconds (nearly an hour), which essentially makes the first run of any session impractical. This is particularly problematic because Google Colab sessions are ephemeral , so each time the runtime restarts or disconnects I have to go through this lengthy compilation process all over again. This makes Colab almost unusable for iterative modeling or simulation workflows, as any small change or session interruption means waiting another hour before being able to actually work with the package. The issue severely limits the ability to use Julia, and especially the SciML environment on Google Colab for any serious development or experimentation. While I understand that Julia’s compilation model involves some overhead, this scale of delay makes the platform very frustrating to work with.
Has anyone encountered this issue and found a workaround? I’d really appreciate any insights or solutions that might help make ModelingToolkit.jl (and Julia in general) more usable on Google Colab.
@juliohm That would be extremely helpful if it worked! This compilation wait time is really a bottleneck when trying to work with Julia on Colab (it’s hard convincing new people to use Julia with this drawback).
@gdalle I already tried it with no success on my part
I’m not familiar with the specific setup process for Google Colab. One potential approach might be to install it using a Jumbo snap package, but that one needs to verify (It is also easy to install the snap manually if the underlying system does not support installation mechanism). I am also not really up to maintaining such integration, but it does seem one can make it happen on their own.
One can also take this approach to install Jumbo snap package. Although it does not look particularly ergonomical for the users to install Julia in every session when they need it.