Skip to content

Commit

Permalink
python db redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
cldougl committed Mar 13, 2017
1 parent f3580aa commit e35ae42
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
2 changes: 1 addition & 1 deletion _config_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ stylesheet: https://s3-us-west-1.amazonaws.com/plotly-tutorials/assets/css/api/m
# Excludes
# ---
# all of the posts: ['*.Rmd','_posts/2015-09-09-matlab-reference.html','_posts/2015-09-06-r-reference.html','_posts/2015-09-06-python-reference.html','_posts/2015-08-19-plotly_js-reference.html','_posts/2015-04-05-ggplot2-index.html','_posts/2015-04-05-julia-index.html','_posts/2015-04-05-matlab-index.html','_posts/2015-04-05-matplotlib-index.html','_posts/2015-04-05-node_js-index.html','_posts/2015-04-05-plotly_js-index.html','_posts/2015-04-05-plotlyjs-function-reference.md','_posts/2015-04-05-python-index.html','_posts/2015-05-25-ipython-notebooks_gallery.html','_posts/2015-05-25-ipython-notebooks_index.html','_posts/2015-07-13-eula_index.html','_posts/2015-07-19-pandas.html','_posts/2015-07-26-index.html','_posts/2015-07-30-r-index.Rmd','_posts/2015-07-30-r-index.md','_posts/2015-08-20-research-box-index.html','_posts/ggplot2','_posts/julia','_posts/matlab','_posts/matplotlib','_posts/nodejs','_posts/pandas','_posts/plotly_js','_posts/python','_posts/r','_posts/tutorials','_posts/user_guide_matlab','_posts/user_guide_python']
exclude: ['*.Rmd','_posts/2015-09-09-matlab-reference.html','_posts/2015-09-06-r-reference.html','_posts/2015-09-06-python-reference.html','_posts/2015-08-19-plotly_js-reference.html','_posts/2015-04-05-ggplot2-index.html','_posts/2015-04-05-julia-index.html','_posts/2015-04-05-matlab-index.html','_posts/2015-04-05-matplotlib-index.html','_posts/2015-04-05-node_js-index.html','_posts/2015-04-05-plotlyjs-function-reference.md','_posts/2015-05-25-ipython-notebooks_gallery.html','_posts/2015-05-25-ipython-notebooks_index.html','_posts/2015-07-13-eula_index.html','_posts/2015-07-19-pandas.html','_posts/2015-07-26-index.html','_posts/2015-08-20-research-box-index.html','_posts/ggplot2','_posts/python','_posts/julia','_posts/matlab','_posts/matplotlib','_posts/nodejs','_posts/pandas','_posts/tutorials','_posts/user_guide_matlab','_posts/user_guide_python']
exclude: ['*.Rmd','_posts/2015-09-09-matlab-reference.html','_posts/2015-09-06-r-reference.html','_posts/2015-09-06-python-reference.html','_posts/2015-08-19-plotly_js-reference.html','_posts/2015-04-05-ggplot2-index.html','_posts/2015-04-05-julia-index.html','_posts/2015-04-05-matlab-index.html','_posts/2015-04-05-matplotlib-index.html','_posts/2015-04-05-node_js-index.html','_posts/2015-04-05-plotlyjs-function-reference.md','_posts/2015-05-25-ipython-notebooks_gallery.html','_posts/2015-05-25-ipython-notebooks_index.html','_posts/2015-07-13-eula_index.html','_posts/2015-07-19-pandas.html','_posts/2015-07-26-index.html','_posts/2015-08-20-research-box-index.html','_posts/ggplot2','_posts/julia','_posts/matlab','_posts/matplotlib','_posts/nodejs','_posts/pandas','_posts/tutorials','_posts/user_guide_matlab','_posts/user_guide_python']
#exclude: [_posts/temp, '*.Rmd']

# ---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
display_as: file_settings
has_thumbnail: true
page_type: example_index
redirect_from:
- ../dashboards-api/
order: 0
---
{% raw %}
Expand Down Expand Up @@ -735,12 +737,12 @@ <h4 id="Reference">Reference<a class="anchor-link" href="#Reference">&#182;</a><

class dashboard_ops
| Interface to Plotly&#39;s Dashboards API.
|
|
| Plotly Dashboards are JSON blobs. They are made up by a bunch of
| containers which contain either empty boxes or boxes with file urls.
| For more info on Dashboard objects themselves, run
| `help(plotly.dashboard_objs)`.
|
|
| Example 1: Upload Simple Dashboard
| ```
| import plotly.plotly as py
Expand All @@ -751,46 +753,46 @@ <h4 id="Reference">Reference<a class="anchor-link" href="#Reference">&#182;</a><
| &#39;fileId&#39;: &#39;username:123&#39;,
| &#39;title&#39;: &#39;box 1&#39;
| }
|
|
| box_2 = {
| &#39;type&#39;: &#39;box&#39;,
| &#39;boxType&#39;: &#39;plot&#39;,
| &#39;fileId&#39;: &#39;username:456&#39;,
| &#39;title&#39;: &#39;box 2&#39;
| }
|
|
| my_dboard = dashboard.Dashboard()
| my_dboard.insert(box_1)
| # my_dboard.get_preview()
| my_dboard.insert(box_2, &#39;above&#39;, 1)
| # my_dboard.get_preview()
|
|
| py.dashboard_ops.upload(my_dboard)
| ```
|
|
| Example 2: Retreive Dashboard from Plotly
| ```
| # works if you have at least one dashboard in your files
| import plotly.plotly as py
| import plotly.dashboard_objs as dashboard
|
|
| dboard_names = get_dashboard_names()
| first_dboard = get_dashboard(dboard_names[0])
|
|
| first_dboard.get_preview()
| ```
|
|
| Class methods defined here:
|
|
| get_dashboard(cls, dashboard_name) from __builtin__.classobj
| Returns a Dashboard object from a dashboard name.
|
|
| get_dashboard_names(cls) from __builtin__.classobj
| Return list of all active dashboard names from users&#39; account.
|
|
| upload(cls, dashboard, filename, sharing=&#39;public&#39;, auto_open=True) from __builtin__.classobj
| BETA function for uploading/overwriting dashboards to Plotly.
|
|
| :param (dict) dashboard: the JSON dashboard to be uploaded. Use
| plotly.dashboard_objs.dashboard_objs to create a Dashboard
| object.
Expand Down

0 comments on commit e35ae42

Please sign in to comment.