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

Class JpegRenderer

plotly/io/_base_renderers.py:185–204  ·  view source on GitHub ↗

Renderer to display figures as static JPEG images. This renderer requires either the kaleido package or the orca command-line utility and is broadly compatible across IPython environments (classic Jupyter Notebook, JupyterLab, QtConsole, VSCode, PyCharm, etc) and nbconvert targets

Source from the content-addressed store, hash-verified

183
184
185class JpegRenderer(ImageRenderer):
186 """
187 Renderer to display figures as static JPEG images. This renderer requires
188 either the kaleido package or the orca command-line utility and is broadly
189 compatible across IPython environments (classic Jupyter Notebook, JupyterLab,
190 QtConsole, VSCode, PyCharm, etc) and nbconvert targets (HTML, PDF, etc.).
191
192 mime type: 'image/jpeg'
193 """
194
195 def __init__(self, width=None, height=None, scale=None, engine=None):
196 super(JpegRenderer, self).__init__(
197 mime_type="image/jpeg",
198 b64_encode=True,
199 format="jpg",
200 width=width,
201 height=height,
202 scale=scale,
203 engine=engine,
204 )
205
206
207class PdfRenderer(ImageRenderer):

Callers 1

_renderers.pyFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected