Skip to main content
Seasoned ⭐️⭐️
Aug 29, 2022 4:24 PM UTC
Solved

How to set up CSV extractors in Visual Studio [Community Contributed]

Has anyone configured the extractor to use Visual Studio Code? I need a step by step guide.

    Practitioner ⭐️⭐️⭐️
    Aug 30, 2022 11:48 AM UTC

    Assuming you have set up and installed a poetry environment for your project:

    Install the official python extension for VSCode.

    Press

    View > Command Palette 

    then select “Python: Select Interpreter”

    Enter Interpreter Path

    Find…

    Then navigate to where your poetry environment is, on linux this is going to be ~/.cache/pypoetry/virtualenvs/your-project-name/bin/python, it is different for other operating systems, you will need to look up where to find your virtualenv if you’re on windows or mac.

    Now VSCode should be configured to use your poetry environment for that project.

    4 replies

    Practitioner ⭐️⭐️⭐️
    Aug 30, 2022 11:48 AM UTC

    Assuming you have set up and installed a poetry environment for your project:

    Install the official python extension for VSCode.

    Press

    View > Command Palette 

    then select “Python: Select Interpreter”

    Enter Interpreter Path

    Find…

    Then navigate to where your poetry environment is, on linux this is going to be ~/.cache/pypoetry/virtualenvs/your-project-name/bin/python, it is different for other operating systems, you will need to look up where to find your virtualenv if you’re on windows or mac.

    Now VSCode should be configured to use your poetry environment for that project.

    ikequarshAuthor
    Seasoned ⭐️⭐️
    Aug 30, 2022 1:46 PM UTC

    Einar, 

    Thanks for your quick response. I am using Windows and can you help? 

    Practitioner ⭐️⭐️⭐️
    Aug 30, 2022 2:45 PM UTC

    I don’t have a windows setup myself, but it seems like you can find it in
    C:\Users\<username>\AppData\Roaming\pypoetry\virtualenvs\your-project-name\bin\python.exe 

    same instructions as above.

    Stig Harald Gustavsen
    Practitioner ⭐️⭐️
    Practitioner ⭐️⭐️
    Jan 23, 2023 9:00 AM UTC

    I made a video that might help you to setup a python developement enviroment for developing extractors. using WSL, Pyenv and Poetry. 
     

     

    Stig