# Prodigy VS Code setup issue

**URL:** <https://support.prodi.gy/t/prodigy-vs-code-setup-issue/5786>\
**Category:** Getting Started\
**Tags:** install\
**Created:** [July 8, 2022, 12:23am UTC](https://support.prodi.gy/t/prodigy-vs-code-setup-issue/5786 "2022-07-08T00:23:08Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![kkyw30](https://avatars.discourse-cdn.com/v4/letter/k/6f9a4e/32.png) [@kkyw30](https://support.prodi.gy/u/kkyw30)\
**Post date:** [July 8, 2022, 12:23am UTC](https://support.prodi.gy/t/prodigy-vs-code-setup-issue/5786/1 "2022-07-08T00:23:08Z")

</div>

Hello,

I want to use Prodigy for named entity recognition and assigning dependency relations, and have my training data file ready to go in a .jsonl. In my VS Code, I've installed Prodigy in a virtual environment, but when I run Prodigy with even a blank pipeline with "prodigy blank:en", I get a popup window saying "How do you want to open this file" instead of taking me to a localhost so I can start annotations. The same happens when I run Prodigy with the pipeline components and span labels that I want to include. Can you please help me solve this issue? Thanks in advance.

---

<div class="post-metadata">

**Author:** ![ljvmiranda921](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ljvmiranda921/32/3197_2.png) [@ljvmiranda921](https://support.prodi.gy/u/ljvmiranda921)\
**Post date:** [July 11, 2022, 1:14am UTC](https://support.prodi.gy/t/prodigy-vs-code-setup-issue/5786/2 "2022-07-11T01:14:42Z")

</div>

Hi @kkyw30 ,

Welcome to Prodigy!

I can't seem to replicate your setup issue. A few things to sanity-check:

- How do you open the Prodigy tab in VSCode? Are you using the CTRL+SHIFT+P and "Open Prodigy" command?
- Is it possible to send screenshots of this error message? Does this appear in the browser? Usually, vscode prodigy just mimics a browser inside your VS Code interface, so no files are being opened.
- Can you also send me the logs in the Prodigy command whenever this error shows up? You can prepend the command with `PRODIGY_LOGGING=verbose` like so: `PRODIGY_LOGGING=verbose prodigy ...`

---

<div class="post-metadata">

**Author:** ![kkyw30](https://avatars.discourse-cdn.com/v4/letter/k/6f9a4e/32.png) [@kkyw30](https://support.prodi.gy/u/kkyw30)\
**Post date:** [July 11, 2022, 8:21am UTC](https://support.prodi.gy/t/prodigy-vs-code-setup-issue/5786/3 "2022-07-11T08:21:28Z")

</div>

Hello,

I've recreated my process for installing Prodigy. I open VS Code, then create a new virtual environment, and within that virtual environment, install Prodigy according to the documentation's installation instructions. As far as I can tell, Prodigy is installed properly.

 ![Screenshot 2022-07-11 011729](https://us1.discourse-cdn.com/flex020/uploads/prodigy/original/2X/0/0d211ec7bdac8a3420a2a1e3aca0cfa83a4baa05.png)

However, when I execute "prodigy blank:en" in my terminal, just to see if I can start annotating, nothing really happens (as you may be able to see from my terminal output). I get a popup saying "How do you want to open this file?" The notepad file looks like this:

 ![Screenshot 2022-07-11 011652](https://us1.discourse-cdn.com/flex020/uploads/prodigy/original/2X/f/f0f772e07d74c7b90f5ded2400fe42d69f78eaf0.png)

Is there a better way for me to open Prodigy in VS Code so I can start annotating in a localhost in a browser? Is there some intermediate step I'm missing?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![ljvmiranda921](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ljvmiranda921/32/3197_2.png) [@ljvmiranda921](https://support.prodi.gy/u/ljvmiranda921)\
**Post date:** [July 12, 2022, 1:49am UTC](https://support.prodi.gy/t/prodigy-vs-code-setup-issue/5786/4 "2022-07-12T01:49:45Z")

</div>

Hi @kkyw30 ,

Are you trying to run the command `prodigy blank:en` specifically? This won't work because prodigy requires you to pass a [recipe](https://prodi.gy/docs/recipes). To check if your installation is correct, perhaps you can try running the example recipe in the [vscode-prodigy repo](https://github.com/explosion/vscode-prodigy)?

First you need to clone the repo, then enter the cloned directory:

```python
git clone git@github.com:explosion/vscode-prodigy.git
cd vscode-prodigy
code .

```

Then from there you can run a Prodigy session (the example files are already provided in the repo):

```python
prodigy ner.manual my_set blank:en example/news_headlines.jsonl --label PERSON,ORG,PRODUCT

```

Note that you have to pass a recipe (in this case `ner.manual` and a set of example data in JSONL for it to work. To view Prodigy in another VSCode tab, you need to open the VSCode Command Prompt (CTRL+SHIFT+P) and then click the `Open Prodigy` command.

---

<div class="post-metadata">

**Author:** ![kkyw30](https://avatars.discourse-cdn.com/v4/letter/k/6f9a4e/32.png) [@kkyw30](https://support.prodi.gy/u/kkyw30)\
**Post date:** [July 12, 2022, 10:02pm UTC](https://support.prodi.gy/t/prodigy-vs-code-setup-issue/5786/5 "2022-07-12T22:02:30Z")

</div>

Hello,

I wasn't able to clone your github repository (error message attached below).  
 ![Screenshot 2022-07-12 142032](https://us1.discourse-cdn.com/flex020/uploads/prodigy/original/2X/c/c31458eb9e372cfc73bc411de81b49973403c8e1.png)

However, I was able to clone another an NLP model from one of my own repositories, but even when passing in a recipe and jsonl file with "prodigy rel.manual...", I still only get a popup window with a file.

 ![Screenshot 2022-07-12 150129](https://us1.discourse-cdn.com/flex020/uploads/prodigy/original/2X/d/da72219002e16abe145bf4072102cebd6728331a.png)

As you can see from the image, nothing meaningful really happens.

Also, where is the "Open Prodigy" command in the VS Code interpreter? I couldn't find that command.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![ljvmiranda921](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ljvmiranda921/32/3197_2.png) [@ljvmiranda921](https://support.prodi.gy/u/ljvmiranda921)\
**Post date:** [July 13, 2022, 1:39am UTC](https://support.prodi.gy/t/prodigy-vs-code-setup-issue/5786/6 "2022-07-13T01:39:15Z")

</div>

Hi @kkyw30 ,

> I wasn't able to clone your github repository (error message attached below).

Can you try using the HTTPS version? Like this:

```python
git clone https://github.com/explosion/vscode-prodigy.git

```

This assumes you already installed [Visual Studio Code (VS Code)](https://code.visualstudio.com/). While Prodigy is running somewhere, you can type (CTRL+SHIFT+P to **open the Command Prompt**. It will then show a drop-down box where you can find the "Open Prodigy" command:

![](https://github.com/explosion/vscode-prodigy/raw/master/assets/preview.gif)

I encourage you to clone the example repository again and try it out first. Also, when looking at your logs, I'm not sure if Prodigy is running correctly?

> I was able to clone another an NLP model from one of my own repositories, but even when passing in a recipe and jsonl file with "prodigy rel.manual...", I still only get a popup window with a file.

Ensure that the model you're passing is a model that was trained in spaCy.

---

<div class="post-metadata">

**Author:** ![kkyw30](https://avatars.discourse-cdn.com/v4/letter/k/6f9a4e/32.png) [@kkyw30](https://support.prodi.gy/u/kkyw30)\
**Post date:** [July 13, 2022, 8:18am UTC](https://support.prodi.gy/t/prodigy-vs-code-setup-issue/5786/7 "2022-07-13T08:18:28Z")

</div>

Hello,

Does it matter whether I'm running on Windows or Mac? When I try to run "python3 -m prodigy..." I get an error saying "No module named prodigy." Also, what do you mean when you say "when Prodigy is running somewhere?" Don't I have to start Prodigy from the terminal?

Good news is I'm able to clone the https version of the repository. Thanks in advance.

---

<div class="post-metadata">

**Author:** ![ljvmiranda921](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ljvmiranda921/32/3197_2.png) [@ljvmiranda921](https://support.prodi.gy/u/ljvmiranda921)\
**Post date:** [July 13, 2022, 8:45am UTC](https://support.prodi.gy/t/prodigy-vs-code-setup-issue/5786/8 "2022-07-13T08:45:37Z")

</div>

It shouldn't be based on your operating system, so Windows and Mac should be ok. I'd say that maybe you installed prodigy in a different path? You can check the following:

```python
which prodigy

```

And from there you can see the path of your Prodigy installation. Sometimes, there's also a common catch where you installed it in the `python` path but not in the `python3` path. Try running the same command with `python` instead of `python3`.

> Also, what do you mean when you say "when Prodigy is running somewhere?" Don't I have to start Prodigy from the terminal?

You got it right. It means that if you have a Prodigy session running, you can then open Visual Studio code, open the command prompt, then look for the "Open Prodigy" command.

---

<div class="post-metadata">

**Author:** ![kkyw30](https://avatars.discourse-cdn.com/v4/letter/k/6f9a4e/32.png) [@kkyw30](https://support.prodi.gy/u/kkyw30)\
**Post date:** [July 13, 2022, 3:40pm UTC](https://support.prodi.gy/t/prodigy-vs-code-setup-issue/5786/9 "2022-07-13T15:40:15Z")

</div>

I tried running the installation command with "python" instead of "python3", but I still get this error:

 ![Screenshot 2022-07-13 083606](https://us1.discourse-cdn.com/flex020/uploads/prodigy/original/2X/6/65ec9808bcfd8962bf751f0c95a48629ef2e4a51.png)

I've been looking into installing via setup wheel...do you think that would help because it'd be based on my specific system? Also, the installation command on your documentation seems to be for mac users--if I have python 3.10.2 and Windows 10 64-bit processor what would the new installation command be?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![ljvmiranda921](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ljvmiranda921/32/3197_2.png) [@ljvmiranda921](https://support.prodi.gy/u/ljvmiranda921)\
**Post date:** [July 15, 2022, 1:48am UTC](https://support.prodi.gy/t/prodigy-vs-code-setup-issue/5786/10 "2022-07-15T01:48:33Z")

</div>

Hi Kyle, can you try rerunning the [installation process for Prodigy](https://prodi.gy/docs/install) again? And then for good measure, copy paste the installation logs so that we can verify if Prodigy was installed correctly. My hunch is that Prodigy didn't install properly in your system, hence why you can't start a Prodigy session, and consequently why VS Code won't show anything (as it depends on the running Prodigy session).

> if I have python 3.10.2 and Windows 10 64-bit processor what would the new installation command be?

Prodigy should [already be available in your Python version](https://prodi.gy/docs/changelog#v1.11.6). Usually, these commands are run inside a terminal. I also use Windows, and I installed prodigy in [Windows Subsystem for Linux (WSL2) terminal](https://docs.microsoft.com/en-us/windows/wsl/install). It creates a linux environment inside your machine (similar to what MacOS has).

---

<div class="post-metadata">

**Author:** ![ljvmiranda921](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ljvmiranda921/32/3197_2.png) [@ljvmiranda921](https://support.prodi.gy/u/ljvmiranda921)\
**Post date:** [July 18, 2022, 12:54am UTC](https://support.prodi.gy/t/prodigy-vs-code-setup-issue/5786/12 "2022-07-18T00:54:44Z")

</div>

Hi Kyle, I deleted your latest post because your API keys were exposed. Here's the updated screenshot:

 ![1796b88dc2634fab47845d5ac1512e3a0a266685-1](https://us1.discourse-cdn.com/flex020/uploads/prodigy/original/2X/8/8b43c95754d7c7852577eacc5575eade81bcf5cb.png)

Next time you can copy-paste the text instead rather than posting the whole image. I think there's one mistake in your command. If you look at the [`rel.manual`](https://prodi.gy/docs/recipes) recipe, , it expects for a "dataset" as its first positional argument. You might need to update it as:

```python
venv/bin/python -m prodigy rel.manual rel_dataset blank:en ./chase_data.jsonl --label SUBJECT,LOCATION

```

Note that:

- You are working inside a virtual environment, and that your prodigy installation happened inside that environment. If you encountered errors such as "prodigy cannot be found" or something, it might be because you're "outside" the environment and forgot to activate it.
- `rel_dataset` is the missing argument. This can be anything, and Prodigy will save your annotations into this dataset.

Although I wonder why it didn't give an error when you put the incorrect command 🤔 . If possible can you try running the same command in a Linux-based environment? Say, [Windows Terminal on WSL2](https://docs.microsoft.com/en-us/windows/wsl/install)? I'll also check in with our team why it's the case

---

<div class="post-metadata">

**Author:** ![kkyw30](https://avatars.discourse-cdn.com/v4/letter/k/6f9a4e/32.png) [@kkyw30](https://support.prodi.gy/u/kkyw30)\
**Post date:** [July 20, 2022, 7:27am UTC](https://support.prodi.gy/t/prodigy-vs-code-setup-issue/5786/13 "2022-07-20T07:27:45Z")

</div>

Hi Lj,

Thank you for that. When I tried including "venv/bin/python" in my command I got an error saying 'venv/bin/python is not recognized'. I tried the command "prodigy rel.manual rel\_dataset /data.jsonl --label PERSON,GPE again (this time with the rel\_dataset), but I still only got the popup to open a file instead of taking me to the annotation tool. I'll try running on WSL2. Thanks
