MCPcopy Create free account
hub / github.com/ipython/ipython / _repr_javascript_

Method _repr_javascript_

IPython/core/display.py:1051–1059  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1049 super(Javascript, self).__init__(data=data, url=url, filename=filename)
1050
1051 def _repr_javascript_(self):
1052 r = ''
1053 for c in self.css:
1054 r += _css_t % c
1055 for l in self.lib:
1056 r += _lib_t1 % l
1057 r += self.data
1058 r += _lib_t2*len(self.lib)
1059 return r
1060
1061# constants for identifying png/jpeg data
1062_PNG = b'\x89PNG\r\n\x1a\n'

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected