From 4b92fce229f37501c906a64dd9bcc362d70250b8 Mon Sep 17 00:00:00 2001 From: supRy Date: Sat, 11 Apr 2020 12:07:49 -0400 Subject: [PATCH 1/3] Fixed code block in "Displaying Figures Using Dash" No code was changed. Just edited the markdown to show the code block correctly. --- doc/python/renderers.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/python/renderers.md b/doc/python/renderers.md index 47ac49334d6..d4373e1d76b 100644 --- a/doc/python/renderers.md +++ b/doc/python/renderers.md @@ -235,7 +235,7 @@ It is important to note that Dash does not use the renderers framework discussed 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. - +```python import dash_core_components as dcc import plotly.graph_objs as go @@ -245,7 +245,7 @@ dcc.Graph( id='example-graph-2', figure=fig ) - +``` ## Displaying Figures Using `ipywidgets` 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. From 43281d23547adcba2b2bb2ae60dd373df5de6619 Mon Sep 17 00:00:00 2001 From: Emmanuelle Gouillart Date: Mon, 13 Apr 2020 10:09:25 +0200 Subject: [PATCH 2/3] Update doc/python/renderers.md --- doc/python/renderers.md | 1 - 1 file changed, 1 deletion(-) diff --git a/doc/python/renderers.md b/doc/python/renderers.md index d4373e1d76b..e1084db31ef 100644 --- a/doc/python/renderers.md +++ b/doc/python/renderers.md @@ -235,7 +235,6 @@ It is important to note that Dash does not use the renderers framework discussed 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. -```python import dash_core_components as dcc import plotly.graph_objs as go From 95cd25c32acb63c85cbe03e904612786b4869007 Mon Sep 17 00:00:00 2001 From: Emmanuelle Gouillart Date: Mon, 13 Apr 2020 10:13:16 +0200 Subject: [PATCH 3/3] added backticks --- doc/python/renderers.md | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/python/renderers.md b/doc/python/renderers.md index e1084db31ef..b5b61442591 100644 --- a/doc/python/renderers.md +++ b/doc/python/renderers.md @@ -235,6 +235,7 @@ It is important to note that Dash does not use the renderers framework discussed 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. +``` import dash_core_components as dcc import plotly.graph_objs as go