Skip to content

Commit 0c33f20

Browse files
authored
Merge pull request #2374 from supRy/patch-1
Fixed code block in "Displaying Figures Using Dash" on Renderers help page
2 parents 7520abc + 95cd25c commit 0c33f20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/python/renderers.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ It is important to note that Dash does not use the renderers framework discussed
235235

236236
Instead, pass your figure as the `figure` parameter to the [`dcc.Graph`](https://dash.plot.ly/dash-core-components/graph) component, which is part of the [Dash Core Components](https://dash.plot.ly/dash-core-components) library. The code below demonstrates how to do this.
237237

238-
<!-- #raw -->
238+
```
239239
import dash_core_components as dcc
240240
import plotly.graph_objs as go
241241
@@ -245,7 +245,7 @@ dcc.Graph(
245245
id='example-graph-2',
246246
figure=fig
247247
)
248-
<!-- #endraw -->
248+
```
249249

250250
## Displaying Figures Using `ipywidgets`
251251
Plotly figures can be displayed in [ipywidgets](https://ipywidgets.readthedocs.io/en/stable/) contexts using `plotly.graph_objects.FigureWidget` objects. `FigureWidget` is a figure graph object (just like `plotly.graph_objects.Figure`), so you can add traces to it and update it just like a regular `Figure`. But `FigureWidget` is also an `ipywidgets` object, which means that you can display it alongside other `ipywidgets` to build user interfaces right in the notebook.

0 commit comments

Comments
 (0)