Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9f15456

Browse files
committed
docstring 🐶 - basic example
1 parent d69887d commit 9f15456

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

plotly/offline.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,14 @@ def iplot(figure_or_data, show_link=True, link_text='Export to plot.ly'):
8787
of the chart that will export the chart to
8888
Plotly Cloud or Plotly Enterprise
8989
link_text (default='Export to plot.ly') -- the text of export link
90+
91+
Example:
92+
```
93+
from plotly.offline import init_notebook_mode, iplot
94+
init_notebook_mode()
95+
96+
iplot([{'x': [1, 2, 3], 'y': [5, 2, 7]}])
97+
```
9098
"""
9199
if not __PLOTLY_OFFLINE_INITIALIZED:
92100
raise exceptions.PlotlyError('\n'.join([

0 commit comments

Comments
 (0)