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

Method _ipython_display_

nextpy/ai/engine/_program.py:321–334  ·  view source on GitHub ↗

Display the program in the ipython notebook.

(self)

Source from the content-addressed store, hash-verified

319 pass
320
321 def _ipython_display_(self):
322 """Display the program in the ipython notebook."""
323
324 log.debug(
325 f"displaying program in _ipython_display_ with self._comm={self._comm}, self.id={self._id}"
326 )
327
328 # mark that we are displaying (and so future execution updates should be displayed)
329 self._displaying = True
330 self._displaying_html = True
331
332 # build and display the html
333 html = self._build_html(self.marked_text)
334 self._display_html(html)
335
336 async def _await_finish_execute(self):
337 """Used by self.__await__ to wait for the program to complete."""

Callers

nothing calls this directly

Calls 2

_build_htmlMethod · 0.95
_display_htmlMethod · 0.95

Tested by

no test coverage detected