MCPcopy Create free account
hub / github.com/NanoComp/meep / JS_Animation

Class JS_Animation

python/visualization.py:1402–1410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1400# A helper class used to make jshtml animations embed
1401# seamlessly within Jupyter notebooks.
1402class JS_Animation:
1403 def __init__(self, jshtml: str):
1404 self.jshtml = jshtml
1405
1406 def _repr_html_(self) -> str:
1407 return self.jshtml
1408
1409 def get_jshtml(self) -> str:
1410 return self.jshtml
1411
1412
1413# ------------------------------------------------------- #

Callers 1

to_jshtmlMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected