Renderer to display interactive figures in Google Colab Notebooks. This renderer is enabled by default when running in a Colab notebook. mime type: 'text/html'
| 446 | |
| 447 | |
| 448 | class ColabRenderer(HtmlRenderer): |
| 449 | """ |
| 450 | Renderer to display interactive figures in Google Colab Notebooks. |
| 451 | |
| 452 | This renderer is enabled by default when running in a Colab notebook. |
| 453 | |
| 454 | mime type: 'text/html' |
| 455 | """ |
| 456 | |
| 457 | def __init__( |
| 458 | self, config=None, auto_play=False, post_script=None, animation_opts=None |
| 459 | ): |
| 460 | super(ColabRenderer, self).__init__( |
| 461 | connected=True, |
| 462 | full_html=True, |
| 463 | global_init=False, |
| 464 | config=config, |
| 465 | auto_play=auto_play, |
| 466 | post_script=post_script, |
| 467 | animation_opts=animation_opts, |
| 468 | ) |
| 469 | |
| 470 | |
| 471 | class IFrameRenderer(MimetypeRenderer): |