{% extends "broker/base.html" %}{% block title %}Add environment on {{ cluster }}{% endblock %}{% block content %} {% include "broker/cluster_navigation.html" with cluster_section="new_environment" current="Add environment" %}

Add an environment

Select Python modules, Anaconda/Miniforge, or an existing Poetry/venv environment for {{ cluster }}. Use Inspect selection to find executable paths and existing environments through your running connector, then save a recipe and grant it in project settings.

What inspection does

It loads your selected modules in the cluster login shell and lists existing environments. It never installs packages or runs a project. Conda uses isolated configuration; Poetry environments are found from existing prefixes and its standard cache. You can enter custom paths manually.

{% if not inspection_ready %}

Restart this cluster's connector with the updated Compute Relay package to enable inspection. Manual paths and the saved catalog remain available.

{% endif %} {% if waiting %}

Waiting for your connector to inspect this selection…

{% elif task.state == "failed" %}

Inspection failed: {{ task.error_code }}. Check the connector and module selection, then inspect again.

{% elif task and not observation %}

Inspection expired. Keep the connector running and inspect again.

{% endif %} {% if observation %}

Inspection requested {{ task.created_at }}; results from the login node. Compute-node availability is unverified. Conda: {{ observation.conda_status }}.{% if observation.poetry_executable %} Poetry: {{ observation.poetry_executable }}.{% endif %}{% if observation.truncated %} Some candidates were omitted; you can enter an exact prefix manually.{% endif %}

{% endif %} {% if selected_cluster.discovery_snapshot.software.modules.provisional %}

This cluster's catalog includes module filename candidates{% if selected_cluster.discovery_snapshot.software.modules.availability.enabled %} and the site's module listing{% endif %}. Aliases, dependencies and compatibility have not been validated together. Review the selected modules and initialization in the job package before execution.

{% endif %}
{% csrf_token %}{% include "broker/configuration_errors.html" %} {% if task %}{% endif %} {% for field in form %} {% if field.name == "discovered_modules" %}
Load cluster modules (optional for existing environments){% endif %} {% if field.name == "modules" %}Advanced module setup{% endif %} {% if field.name == "detected_interpreter" %}

Interpreter and environment

{% endif %} {% if field.name == "detected_interpreter" and field.field.choices|length == 1 and not field.errors or field.name == "detected_environment" and field.field.choices|length == 1 and not field.errors %}{{ field.as_hidden }} {% elif field.is_hidden %}{{ field }}{{ field.errors }} {% elif field.name == "discovered_modules" %}
{{ field.label }} {% if form.available_modules %}
{{ field }}
{% else %}

No modules found in this cluster's configured discovery paths. An exact module/version can be entered below if known.

{% endif %} {{ field.errors }}
{{ field.help_text }}
{% else %}{% include "broker/configuration_field.html" with field=field %}{% endif %} {% if field.name == "module_paths" %}
{% endif %} {% endfor %}

Saving records these exact paths and module choices. To change a saved environment, create a new one and grant it in project settings.

{{ form.detected_environments|json_script:"detected-environments" }} {% if observation %}{{ observation|json_script:"environment-observation" }}{% endif %} {% endblock %}