Which python interpreter is used in the NRP?


#1

I would like to setup my IDE to where it knows which interpreter is used and doesn’t indicate import errors. Does anyone know this? Thank you!


#2

Dear Tobi,

This question is not NRP-specific but only about IDE configuration. NRP users and developers have different tastes and tools. One popular editor is Visual Studio Code and for this one the configuration of python environments is well documented: https://code.visualstudio.com/docs/python/environments.

Best regards,
Luc


#3

Thank you very much for your answer. I’m actually only trying to find out where the NRP’s python executable is stored so I can tell my IDE where it is. Do you know what I mean? I know how to configure my Python environment in my IDE, I just don’t know which environment that would be. Does the NRP use a conda env? Or a virtualenv? Or its own python executable? And where are they stored?

Thanks :smile:


#4

Hello Tobi,

You will find the list of all NRP python sources and libraries in

$HBP/user-scripts/nrp_variables

In this file, the variable PYTHONPATH is modified accordingly.

Most of the external dependencies are located in

NRP_VIRTUAL_ENV=$HOME/.opt/platform_venv

but PYTHONPATH will know about it only when the CLE starts (see $HBP/user-scripts/nrp_aliases, line 134).

Best regards,
Luc