greppo-io / greppo

Build & deploy geospatial applications quick and easy.
https://greppo.io
Apache License 2.0
386 stars 34 forks source link

Feature proposal: Make Greppo easier to be used with Colab (tunnels, documentation, etc) #62

Open jjcastro opened 1 year ago

jjcastro commented 1 year ago

I'm running Greppo on Colab and I was thinking whether it would be worth making this simpler in Greppo. It works well, but it requires tunneling and running the tunnel separately, which Colab is not too happy running 2 processes at once so it gets a bit cumbersome.

I'm using localtunnel right now. Some ideas I've had (I'm happy to contribute too):

These changes would also improve the general use case of sharing externally-available Greppo links during development, which we want for more exploratory / quick data-analysis type of work (as opposed to building an app to be published). What do you think?

krish-adi commented 1 year ago

Hey @jjcastro , this sounds interesting. For,

  1. The greppo serve .. uses wrap_and_run_script to run the app: https://github.com/greppo-io/greppo/blob/5b3b58bec5d42341398a2730c60785484ad909c1/library/src/greppo/cli.py#L30. You can run the app using the python command by running that function.

I am happy to accept a PR. Let me know if you need more context about the codebase.