greppo icon indicating copy to clipboard operation
greppo copied to clipboard

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

Open jjcastro opened this issue 2 years ago • 1 comments

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 like greppo 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?

jjcastro avatar Jul 25 '23 15:07 jjcastro

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.

krish-adi avatar Aug 04 '23 08:08 krish-adi