Renderer to display interactive figures in Kaggle Notebooks. Same as NotebookRenderer but with connected=True so that the plotly.js bundle is loaded from a CDN rather than being embedded in the notebook. This renderer is enabled by default when running in a Kaggle notebook. m
| 392 | |
| 393 | |
| 394 | class KaggleRenderer(HtmlRenderer): |
| 395 | """ |
| 396 | Renderer to display interactive figures in Kaggle Notebooks. |
| 397 | |
| 398 | Same as NotebookRenderer but with connected=True so that the plotly.js |
| 399 | bundle is loaded from a CDN rather than being embedded in the notebook. |
| 400 | |
| 401 | This renderer is enabled by default when running in a Kaggle notebook. |
| 402 | |
| 403 | mime type: 'text/html' |
| 404 | """ |
| 405 | |
| 406 | def __init__( |
| 407 | self, config=None, auto_play=False, post_script=None, animation_opts=None |
| 408 | ): |
| 409 | super(KaggleRenderer, self).__init__( |
| 410 | connected=True, |
| 411 | full_html=False, |
| 412 | global_init=True, |
| 413 | config=config, |
| 414 | auto_play=auto_play, |
| 415 | post_script=post_script, |
| 416 | animation_opts=animation_opts, |
| 417 | include_plotlyjs=False, |
| 418 | ) |
| 419 | |
| 420 | |
| 421 | class AzureRenderer(HtmlRenderer): |