(self, text: str)
| 46 | return put_html(self.html) |
| 47 | |
| 48 | def append(self, text: str) -> None: |
| 49 | if text: |
| 50 | run_js( |
| 51 | """$("#{dom_id}>code").append(text); |
| 52 | """.format( |
| 53 | dom_id=self.id |
| 54 | ), |
| 55 | text=str(text), |
| 56 | ) |
| 57 | if self.keep_bottom: |
| 58 | self.scroll() |
| 59 | |
| 60 | def scroll(self) -> None: |
| 61 | run_js( |