[Python] Plotting using interactive mode in VSCode/Cursor with a costume launch settings

Discussão em 'Python' iniciado por Stack, Agosto 9, 2025.

  1. Stack

    Stack Membro Participativo

    I have the following project structure

    [​IMG]

    And the main script is data_extraction.py

    My launch.json settings are

    {
    "version": "0.2.0",
    "configurations": [
    {
    "name": "Run Data Extraction",
    "type": "python",
    "request": "launch",
    "program": "${workspaceFolder}/apps/research/data_extraction/data_extraction.py",
    "console": "integratedTerminal",
    "justMyCode": true,
    "env": {
    "PYTHONPATH": "${workspaceFolder}"
    }
    }
    ]}


    And I want to debug in ineractive mode in order to view plots, the problem is that I can only see that I can enter interactive mode using the bottun in the upper right corner the does not run my costume launch configs but just runs default ones for current file.

    The default config result in the following error

    ModuleNotFoundError: No module named 'utils'

    Which utils is imported inside the base.py

    Continue reading...

Compartilhe esta Página