I want to be able to have a Prodigy project on a virtual machine (Google Cloud Platform Vertex AI Workbench to be specific) so I can manually label on any machine.
I installed jupyterlab-prodigy, but when I start trying to annotate, the Prodigy tab says "localhost refused to connect". Here are some things I've tried:
- Tried changing
host = "*"
in theprodigy.json
by creating acustom_prodigy.json
and doingexport PRODIGY_CONFIG="custom_prodigy.json"
. The json looks like this:
{
"theme": "basic",
"custom_theme": {},
"buttons": ["accept", "reject", "ignore", "undo"],
"batch_size": 10,
"history_size": 10,
"port": 8000,
"host": "*",
"cors": true,
"db": "sqlite",
"db_settings": {},
"validate": true,
"auto_exclude_current": true,
"instant_submit": false,
"feed_overlap": false,
"auto_count_stream": false,
"total_examples_target": 0,
"ui_lang": "en",
"project_info": ["dataset", "session", "lang", "recipe_name", "view_id", "label"],
"show_stats": false,
"hide_meta": false,
"show_flag": false,
"instructions": false,
"swipe": false,
"swipe_gestures": { "left": "accept", "right": "reject" },
"split_sents_threshold": false,
"html_template": false,
"global_css": null,
"javascript": null,
"writing_dir": "ltr",
"show_whitespace": false,
"exclude_by": "task"
}
That's to say that going to http://localhost:8000
didn't work, nor did putting in my IP address with port 8000, nor the IP address of the VM.
- Tried ensuring the port I was using was open and not in use
- Tried changing the prodigyConfig url to make sure it was working correctly there in the Advanced Settings Editor. It looks like this now under the "User Preferences" tab of the "Prodigy Jupyter Extension" section of the Advanced Settings Editor:
{ "prodigyConfig": {
"url": "http://localhost:8000"
}
}
- Tried opening it up in a separate browser tab
- Tried curling the
url
which worked:
> curl localhost:8000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes">
<link rel="shortcut icon" href="favicon.ico">
<title>Prodigy</title>
</head>
<body>
<div id="root"></div>
<script src="bundle.js"></script>
</body>
</html>
(base) jupyter@test-bert:~$
All of which has not let me be able to get this working. How do I get this to work?