Feature proposal: Make Greppo easier to be used with Colab (tunnels, documentation, etc)
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):
- Make the app runnable locally via something like
python3 script.py. This would make it more colab-friendly since we don't have to write a file to run likegreppo serve script.py - Integrate ngrok directly via a command line flag (specifically pyngrok, see example of this working together with Flask)
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?
Hey @jjcastro , this sounds interesting. For,
- The
greppo serve ..useswrap_and_run_scriptto 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.