Special method for rendering current object in a jupyter notebook
(self)
| 4422 | return self.newObject(rv) |
| 4423 | |
| 4424 | def _repr_javascript_(self) -> Any: |
| 4425 | """ |
| 4426 | Special method for rendering current object in a jupyter notebook |
| 4427 | """ |
| 4428 | |
| 4429 | if type(self.val()) is Vector: |
| 4430 | return "< {} >".format(self.__repr__()[1:-1]) |
| 4431 | else: |
| 4432 | return Compound.makeCompound( |
| 4433 | _selectShapes(self.objects) |
| 4434 | )._repr_javascript_() |
| 4435 | |
| 4436 | def __getitem__(self: T, item: Union[int, Sequence[int], slice]) -> T: |
| 4437 |