Tip: Making a local Prodigy service externally accessible with ngrok.com

Sometimes you want the server running on your dev machine to be accessible to someone else — or even just yourself, so you can do some annotation on the train or from the couch with your mobile device. I haven’t tried it yet, but this service looks like it should be useful: https://ngrok.com

Has anyone used this for other projects? They have a free tier, and the full service isn’t very expensive. If you try it out, let us know how it goes!

3 Likes

Just tried this. It took <2 minutes to download, run, and access prodigy from my phone. Works great! Thanks for the tip :slight_smile:

2 Likes

In case anyone is googling about how the use the new session functionality introduced in v1.7.0 in conjunction with ngrok.

Support custom named sessions via query parameters in the app to enable multi-user workflows in single instances. For example, accessing the app with /?session=alex will add all annotations to a session dataset dataset-alex . The boolean "feed_overlap" setting lets you control whether to have each example sent out once so it’s annotated by someone or whether to allow overlaps and send out each example to everyone (default).

All you have to do is add /?session=alex to the end of the ngrok url and it will work fine
e.g. http://921c3fe8.ngrok.io/?session=alex
This will automatically connect with http://localhost:8080/?session=alex

2 Likes