(self)
| 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' |
nothing calls this directly
no outgoing calls
no test coverage detected