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

Method default

plotly/io/_renderers.py:135–162  ·  view source on GitHub ↗

The default renderer, or None if no there is no default If not None, the default renderer is used to render figures when the `plotly.io.show` function is called on a Figure. If `plotly.io.renderers.render_on_display` is True, then the default renderer will

(self)

Source from the content-addressed store, hash-verified

133 # ### Properties ###
134 @property
135 def default(self):
136 """
137 The default renderer, or None if no there is no default
138
139 If not None, the default renderer is used to render
140 figures when the `plotly.io.show` function is called on a Figure.
141
142 If `plotly.io.renderers.render_on_display` is True, then the default
143 renderer will also be used to display Figures automatically when
144 displayed in the Jupyter Notebook
145
146 Multiple renderers may be registered by separating their names with
147 '+' characters. For example, to specify rendering compatible with
148 the classic Jupyter Notebook, JupyterLab, and PDF export:
149
150 >>> import plotly.io as pio
151 >>> pio.renderers.default = 'notebook+jupyterlab+pdf'
152
153 The names of available renderers may be retrieved with:
154
155 >>> import plotly.io as pio
156 >>> list(pio.renderers)
157
158 Returns
159 -------
160 str
161 """
162 return self._default_name
163
164 @default.setter
165 def default(self, value):

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected