Opens a Python session with a specific version of Python in an Anaconda virtual environment. If Anaconda is not installed in the default location or there are multiple installations of Anaconda on the system, use the Anaconda Path input to specify the installation of Anaconda to use for the session.


icon

Inputs/Outputs

  • cstr.png Env name

    Env name specifies the name of Anaconda virtual environment.

  • cstr.png Python version
    Python version specifies the version of Python in which the Python session runs. This function supports the following Python versions:
    • LabVIEW 2025 Q1 - Python 3.9 to 3.12
    • LabVIEW 2023, 2024 - Python 3.6 to 3.10

    Although unsupported versions might work with the LabVIEW Python functions, NI recommends using supported versions of Python only.

  • cpath.png Anaconda path

    Anaconda path specifies the directory where Anaconda is installed.

  • cerrcodeclst.png error in (no error)

    error in can accept error information wired from VIs previously called. Use this information to decide if any functionality should be bypassed in the event of errors from other VIs. Right-click the error in control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

  • ignrn.png session out

    session out returns a reference to the Python session.

  • ierrcodeclst.png error out

    error out contains error information. With the following exception, this output provides standard error out functionality.

    If the value of error in is no error, this VI contains error information that corresponds to the error code input.