Using Firedrake in google colab #3302
-
Hi,
This would require installing firedrake every time I have to create a new notebook. Is it possible to install firedrake permanently in google colab, so that for any new colab notebook I can just call the library using Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I believe that the install is cached so the notebooks do not necessarily do a fresh install each time. @francesco-ballarin knows much more than me though. Also, the install line here takes only a couple of minutes to complete, unlike the 1hr+ needed for a native Firedrake installation. Is that still an issue for your use case? |
Beta Was this translation helpful? Give feedback.
Google Colab policies prevent permanent installation. As soon as you terminate the session (because you manually terminate it through the
Runtime
menu, or simply close the browser tab and don't reopen it till a few hours later) any local changes are lost. That includesFEM on Colab
installations, but (notably) also any output (e.g., topvd
file for paraview) you may have created.I am teaching with
FEM on Colab
, and none of the students has ever complained about needing to wait a couple of minutes every time. I realize that it would be easier to installfiredrake
once and forall, but the policy is out of our control and there is nothing we can do about that.You may want to refer to https…