sim_platform.network

Offline mode: refuse every action that would reach beyond this machine’s network.

Set MARKET_LAB_OFFLINE=1 (or call set_offline(True)) for air-gapped research. Market Lab then refuses the hosted model provider, Python runtime downloads and public package downloads, so nothing leaves the machine; local model servers on loopback or a private network, wheelhouses and offline Python archives keep working. Everything else (markets, experiments, Replay, evaluation, reports, the Desktop) never uses the network.

sim_platform.network.set_offline(value)[source]

Force offline mode on or off for this process; None follows the environment.

Parameters:

value (bool | None)

Return type:

None

sim_platform.network.offline()[source]

Whether offline mode is on.

Return type:

bool

sim_platform.network.require_network(action)[source]

Raise ContractError naming action when offline mode is on.

Parameters:

action (str)

Return type:

None