Renderer to display interactive figures in Azure 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 an Azure notebook. mi
| 419 | |
| 420 | |
| 421 | class AzureRenderer(HtmlRenderer): |
| 422 | """ |
| 423 | Renderer to display interactive figures in Azure Notebooks. |
| 424 | |
| 425 | Same as NotebookRenderer but with connected=True so that the plotly.js |
| 426 | bundle is loaded from a CDN rather than being embedded in the notebook. |
| 427 | |
| 428 | This renderer is enabled by default when running in an Azure notebook. |
| 429 | |
| 430 | mime type: 'text/html' |
| 431 | """ |
| 432 | |
| 433 | def __init__( |
| 434 | self, config=None, auto_play=False, post_script=None, animation_opts=None |
| 435 | ): |
| 436 | super(AzureRenderer, self).__init__( |
| 437 | connected=True, |
| 438 | full_html=False, |
| 439 | global_init=True, |
| 440 | config=config, |
| 441 | auto_play=auto_play, |
| 442 | post_script=post_script, |
| 443 | animation_opts=animation_opts, |
| 444 | include_plotlyjs=False, |
| 445 | ) |
| 446 | |
| 447 | |
| 448 | class ColabRenderer(HtmlRenderer): |