MCPcopy Index your code
hub / github.com/plotly/plotly.py / KaggleRenderer

Class KaggleRenderer

plotly/io/_base_renderers.py:394–418  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

392
393
394class 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
421class AzureRenderer(HtmlRenderer):

Callers 1

_renderers.pyFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected