Skip to content

Commit

Permalink
add source code snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
divyachandran-ds committed May 10, 2019
1 parent 410f2a1 commit 4555df7
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 1 deletion.
4 changes: 3 additions & 1 deletion _includes/documentation_eg.html
Original file line number Diff line number Diff line change
Expand Up @@ -628,8 +628,10 @@ <h4 class="example-section-title" id="layout-options">
{% endif %}

{% if page.dash_url %}
<h1>Dash Example</h1>
<a href="#dash-example">Dash Example</a>
<iframe width="100%" height="900px" src="{{ page.dash_url}}" frameborder="0" allowfullscreen=""></iframe>
<iframe width="100%" height="500px" src="{{ page.code_url}}" frameborder="0" allowfullscreen=""></iframe>
<p>Find the dash app source code <a href="{{ page.link_url}}">here</a>.</p>
{% endif %}

{% if page.language == "python" or page.language == "r" or page.language == "plotly_js" %}
Expand Down
2 changes: 2 additions & 0 deletions _posts/python/3d/2017-02-24-python-3d-index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
thumbnail: thumbnail/mixed.jpg
page_type: example_index
dash_url: https://dash-simple-apps.plotly.host/dash-3dplot/frameBorder=0
code_url: https://dash-simple-apps.plotly.host/dash-3dplot/code
link_url: https://github.com/plotly/simple-example-chart-apps/tree/master/3d
order: 20
---

Expand Down
2 changes: 2 additions & 0 deletions _posts/python/basic/2017-02-24-python-basic-index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
thumbnail: thumbnail/mixed.jpg
page_type: example_index
dash_url: https://dash-simple-apps.plotly.host/dash-basicplot/frameBorder=0
code_url: https://dash-simple-apps.plotly.host/dash-basicplot/code
link_url: https://github.com/plotly/simple-example-chart-apps/tree/master/basic
order: 8
---

Expand Down
2 changes: 2 additions & 0 deletions _posts/python/maps/2017-02-24-python-maps-index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
thumbnail: thumbnail/mixed.jpg
page_type: example_index
dash_url: https://dash-simple-apps.plotly.host/dash-mapplot/frameBorder=0
code_url: https://dash-simple-apps.plotly.host/dash-mapplot/code
link_url: https://github.com/plotly/simple-example-chart-apps/tree/master/Maps
order: 20
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
thumbnail: thumbnail/mixed.jpg
page_type: example_index
dash_url: https://dash-simple-apps.plotly.host/dash-statisticalplot/frameBorder=0
code_url: https://dash-simple-apps.plotly.host/dash-statisticalplot/code
link_url: https://github.com/plotly/simple-example-chart-apps/tree/master/statistical
order: 20
---

Expand Down

0 comments on commit 4555df7

Please sign in to comment.