local¶
local
¶
Local-simulation backend: exercise the remote path without a server.
model.trace(..., remote="local") runs the trace here instead of shipping it
to NDIF. It serializes the trace exactly as RemoteBackend
would, then deserializes it with local (non-installed) modules hidden — mimicking
a server where the user's own source files don't exist — and runs the deserialized
block locally against the real model.
If the block references a local function/class that wasn't shipped by value, the
deserialize step raises (ModuleNotFoundError) just as it would on the server,
so a passing remote="local" run is strong evidence a real remote run will work.
Results land back in the caller's frame like an ordinary local trace.