MCPcopy Create free account
hub / github.com/dot-agent/nextpy / _interface_event

Method _interface_event

nextpy/ai/engine/_program.py:313–319  ·  view source on GitHub ↗

Handle an event from the front end.

(self, msg)

Source from the content-addressed store, hash-verified

311 return self._variables[key]
312
313 def _interface_event(self, msg):
314 """Handle an event from the front end."""
315 if msg["event"] == "stop":
316 self._executor.stop()
317 elif msg["event"] == "opened":
318 pass # we don't need to do anything here because the first time we display we'll send the html
319 pass
320
321 def _ipython_display_(self):
322 """Display the program in the ipython notebook."""

Callers

nothing calls this directly

Calls 1

stopMethod · 0.45

Tested by

no test coverage detected