Python Environment

Scripts run in a managed virtual environment that Nexus provisions on first use. It is created from a bundled Python and kept entirely within the application’s data folder, so installing packages never touches your system Python and different machines get a reproducible environment. NumPy and SciPy are included out of the box — the example scripts rely on both.

The environment works offline — the default interpreter and base packages are pre-seeded, so a fresh install can run scripts with no network. Only installing additional packages needs connectivity.

Viewing the environment

The Python Environment section of the Code tab shows the interpreter version and the list of installed packages, with a count. Use the refresh control to re-read the list after an install.

Installing packages

Type one or more package specifications and install. Standard PEP 508 version specifiers are supported, so you can pin a version:

pandas==2.2.2
scikit-image>=0.22
opencv-python

Install progress streams live into the panel. Spaces around version operators are tolerated (pandas >= 2.2 works). Use the help control next to the field for a reminder of the accepted formats.

After an install the script worker is restarted so the new packages can be imported on the next run.

Missing-package auto-install

If a script fails because a package isn’t installed (a ModuleNotFoundError), Nexus recognises the missing module, maps it to its install name (for example cv2 → opencv-python, skimage → scikit-image), and offers to install it for you. Accept the prompt and the script is re-run once automatically after the install completes.

Resetting the environment

If the environment becomes broken, a Reset Python environment command rebuilds the managed virtual environment from scratch (re-provisioning the interpreter and base packages). Packages you installed yourself are not restored automatically — reinstall them afterwards.

Uninstalling Nexus does not remove the managed environment. Use Reset Python environment if you want a clean rebuild.