Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit bdd049b

Browse files
committed
Fixed code block and type annotation formatting.
1 parent 77d19bb commit bdd049b

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

‎plotly/io/_renderers.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,17 @@ def default(self):
147147
'+' characters. For example, to specify rendering compatible with
148148
the classic Jupyter Notebook, JupyterLab, and PDF export:
149149
150+
```python
150151
>>> import plotly.io as pio
151152
>>> pio.renderers.default = 'notebook+jupyterlab+pdf'
153+
```
152154
153155
The names of available renderers may be retrieved with:
154156
157+
```python
155158
>>> import plotly.io as pio
156159
>>> list(pio.renderers)
160+
```
157161
158162
Returns
159163
-------
@@ -373,27 +377,27 @@ def show(fig, renderer=None, validate=True, **kwargs):
373377
374378
Parameters
375379
----------
376-
fig: dict of Figure
380+
fig: dict of Figure
377381
The Figure object or figure dict to display
378382
379-
renderer: str or None (default None)
383+
renderer: str or None (default None)
380384
A string containing the names of one or more registered renderers
381385
(separated by '+' characters) or None. If None, then the default
382386
renderers specified in plotly.io.renderers.default are used.
383387
384-
validate: bool (default True)
388+
validate: bool (default True)
385389
True if the figure should be validated before being shown,
386390
False otherwise.
387391
388-
width: int or float
392+
width: int or float
389393
An integer or float that determines the number of pixels wide the
390394
plot is. The default is set in plotly.js.
391395
392-
height: int or float
396+
height: int or float
393397
An integer or float specifying the height of the plot in pixels.
394398
The default is set in plotly.js.
395399
396-
config: dict
400+
config: dict
397401
A dict of parameters to configure the figure. The defaults are set
398402
in plotly.js.
399403

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /