Run Prodigy in Multiple Ports

I want to run prodigy in multiple ports so that multiple annotators can annotate different data. How can I achieve this?

Hi! In this case, you can use the PRODIGY_PORT environment variable to customise the port that's used, e.g.:

PRODIGY_PORT=1234 prodigy ...

Just make sure that you open up the respective ports on the machine so they're accessible.

image
image

I have found this error.

Are you in a Jupyter notebook? If so, you have to use their syntax for setting environment variables:

Or, if you're using some other terminal or setup, you can do a quick Google search for how to set environment variables on there.

1 Like

Hi, I'm having a problem with setting the environment variable on the windows terminal. Where should I set the path, and do I just name the environment variable PRODIGY_PORT?

hi @kwakjoonhyung!

Thanks for your question and welcome to the Prodigy community :wave:

If running Prodigy from the CLI, the easiest (and most explicit) way is as above to set it in your Prodigy command:

PRODIGY_PORT=1234 python -m prodigy ...

Alternatively, you can also set it via configuring your prodigy.json file as documented here, e.g.,

# prodigy.json
{
    "port": 1234
}