Hi!
Is there a way to import needed python libraries only once, instead of having to import them in each formula in which they are used?
There are some instructions here: Self-managed Grist - Grist Help Center
Basically, it’s not possible right now on the hosted version. You can do it on the self-hosted version, but it requires code changes and building from source.