Skip to content

Commit fcb8a84

Browse files
committed
add notifications example
1 parent 4680f04 commit fcb8a84

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

doc/python/configuration-options.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jupyter:
66
extension: .md
77
format_name: markdown
88
format_version: '1.3'
9-
jupytext_version: 1.17.2
9+
jupytext_version: 1.16.4
1010
kernelspec:
1111
display_name: Python 3 (ipykernel)
1212
language: python
@@ -20,7 +20,7 @@ jupyter:
2020
name: python
2121
nbconvert_exporter: python
2222
pygments_lexer: ipython3
23-
version: 3.12.4
23+
version: 3.9.19
2424
plotly:
2525
description: How to set the configuration options of figures using the Plotly
2626
Python graphing library.
@@ -359,6 +359,19 @@ fig = go.Figure(
359359
fig.show()
360360
```
361361

362+
### Hiding Notifications
363+
364+
*New in 6.7*
365+
366+
By default, Plotly displays a notification in the top-right corner of the plot for actions such as downloading the plot. Set `displayNotifier` to `False` to hide these notifications.
367+
368+
```python
369+
import plotly.express as px
370+
371+
fig = px.scatter(x=[1, 2, 3], y=[1, 3, 2])
372+
fig.show(config={"displayNotifier": False})
373+
```
374+
362375
### Configuring Figures in Dash Apps
363376

364377
The same configuration dictionary that you pass to the `config` parameter of the `show()` method can also be passed to the [`config` property of a `dcc.Graph` component](https://dash.plotly.com/dash-core-components/graph).

plotly/offline/offline.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ def _get_jconfig(config=None):
140140
"locale",
141141
"locales",
142142
"doubleClickDelay",
143+
"displayNotifier",
143144
)
144145

145146
if config and isinstance(config, dict):

0 commit comments

Comments
 (0)