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

Class NotebookRenderer

plotly/io/_base_renderers.py:360–391  ·  view source on GitHub ↗

Renderer to display interactive figures in the classic Jupyter Notebook. This renderer is also useful for notebooks that will be converted to HTML using nbconvert/nbviewer as it will produce standalone HTML files that include interactive figures. This renderer automatically per

Source from the content-addressed store, hash-verified

358
359
360class NotebookRenderer(HtmlRenderer):
361 """
362 Renderer to display interactive figures in the classic Jupyter Notebook.
363 This renderer is also useful for notebooks that will be converted to
364 HTML using nbconvert/nbviewer as it will produce standalone HTML files
365 that include interactive figures.
366
367 This renderer automatically performs global notebook initialization when
368 activated.
369
370 mime type: 'text/html'
371 """
372
373 def __init__(
374 self,
375 connected=False,
376 config=None,
377 auto_play=False,
378 post_script=None,
379 animation_opts=None,
380 include_plotlyjs=False,
381 ):
382 super(NotebookRenderer, self).__init__(
383 connected=connected,
384 full_html=False,
385 global_init=True,
386 config=config,
387 auto_play=auto_play,
388 post_script=post_script,
389 animation_opts=animation_opts,
390 include_plotlyjs=include_plotlyjs,
391 )
392
393
394class KaggleRenderer(HtmlRenderer):

Callers 1

_renderers.pyFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected