Skip to content

Commit

Permalink
update dash colorscales
Browse files Browse the repository at this point in the history
  • Loading branch information
divyachandran-ds committed Mar 25, 2019
1 parent ddadbd1 commit afe6575
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 54 deletions.
45 changes: 28 additions & 17 deletions _posts/python/style/colorscales/2015-06-30-colorscales.html
Original file line number Diff line number Diff line change
Expand Up @@ -440,17 +440,17 @@ <h3 id="Custom-Colorbar">Custom Colorbar<a class="anchor-link" href="#Custom-Col
<div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt">
</div><div class="inner_cell">
<div class="text_cell_render border-box-sizing rendered_html">
<h3 id="Reference">Reference<a class="anchor-link" href="#Reference">&#182;</a></h3>
<h3 id="Dash-Example">Dash Example<a class="anchor-link" href="#Dash-Example">&#182;</a></h3>
</div>
</div>
</div>
<div class="cell border-box-sizing code_cell rendered">
<div class="input">
<div class="prompt input_prompt">In&nbsp;[1]:</div>
<div class="prompt input_prompt">In&nbsp;[4]:</div>
<div class="inner_cell">
<div class="input_area">
<div class=" highlight hl-ipython3"><pre><span></span><span class="kn">from</span> <span class="nn">IPython.display</span> <span class="k">import</span> <span class="n">HTML</span>
<span class="n">HTML</span><span class="p">(</span><span class="s1">&#39;&lt;iframe src= &quot;https://dash-simple-apps.plotly.host/dash-colorscaleplot/&quot; width=&quot;100%&quot; height=&quot;650px&quot; frameBorder=&quot;0&quot;&gt;&lt;/iframe&gt;&#39;</span><span class="p">)</span>
<div class=" highlight hl-ipython3"><pre><span></span><span class="kn">from</span> <span class="nn">IPython.display</span> <span class="k">import</span> <span class="n">IFrame</span>
<span class="n">IFrame</span><span class="p">(</span><span class="n">src</span><span class="o">=</span> <span class="s2">&quot;https://dash-simple-apps.plotly.host/dash-colorscaleplot/&quot;</span> <span class="p">,</span><span class="n">width</span><span class="o">=</span><span class="s2">&quot;100%&quot;</span> <span class="p">,</span><span class="n">height</span><span class="o">=</span><span class="s2">&quot;650px&quot;</span><span class="p">,</span> <span class="n">frameBorder</span><span class="o">=</span><span class="s2">&quot;0&quot;</span><span class="p">)</span>
</pre></div>

</div>
Expand All @@ -463,31 +463,42 @@ <h3 id="Reference">Reference<a class="anchor-link" href="#Reference">&#182;</a><

<div class="output_area">

<div class="prompt"></div>
<div class="prompt output_prompt">Out[4]:</div>


<div class="output_subarea output_stream output_stderr output_text">
<pre>/usr/local/lib/python3.7/site-packages/IPython/core/display.py:689: UserWarning: Consider using IPython.display.IFrame instead
warnings.warn(&#34;Consider using IPython.display.IFrame instead&#34;)
</pre>
</div>
</div>

<div class="output_area">

<div class="prompt output_prompt">Out[1]:</div>
<div class="output_html rendered_html output_subarea output_execute_result">

<iframe
width="100%"
height="650px"
src="https://dash-simple-apps.plotly.host/dash-colorscaleplot/?frameBorder=0"
frameborder="0"
allowfullscreen
></iframe>

</div>

</div>

<div class="output_html rendered_html output_subarea output_execute_result">
<iframe src= "https://dash-simple-apps.plotly.host/dash-colorscaleplot/" width="100%" height="650px" frameBorder="0"></iframe>
</div>
</div>

</div>
<div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt">
</div><div class="inner_cell">
<div class="text_cell_render border-box-sizing rendered_html">
<p><a href="https://github.com/plotly/simple-example-chart-apps/tree/master/colorscale">source code</a></p>

</div>
</div>

</div>
<div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt">
</div><div class="inner_cell">
<div class="text_cell_render border-box-sizing rendered_html">
<h3 id="Reference">Reference<a class="anchor-link" href="#Reference">&#182;</a></h3>
</div>
</div>
</div>
<div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt">
</div><div class="inner_cell">
Expand Down
69 changes: 32 additions & 37 deletions _posts/python/style/colorscales/colorscales.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -360,39 +360,53 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"### Reference"
"### Dash Example"
]
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 4,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"/usr/local/lib/python3.7/site-packages/IPython/core/display.py:689: UserWarning: Consider using IPython.display.IFrame instead\n",
" warnings.warn(\"Consider using IPython.display.IFrame instead\")\n"
]
},
{
"data": {
"text/html": [
"<iframe src= \"https://dash-simple-apps.plotly.host/dash-colorscaleplot/\" width=\"100%\" height=\"650px\" frameBorder=\"0\"></iframe>"
"\n",
" <iframe\n",
" width=\"100%\"\n",
" height=\"650px\"\n",
" src=\"https://dash-simple-apps.plotly.host/dash-colorscaleplot/?frameBorder=0\"\n",
" frameborder=\"0\"\n",
" allowfullscreen\n",
" ></iframe>\n",
" "
],
"text/plain": [
"<IPython.core.display.HTML object>"
"<IPython.lib.display.IFrame at 0x106426128>"
]
},
"execution_count": 1,
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"from IPython.display import HTML\n",
"HTML('<iframe src= \"https://dash-simple-apps.plotly.host/dash-colorscaleplot/\" width=\"100%\" height=\"650px\" frameBorder=\"0\"></iframe>')"
"from IPython.display import IFrame\n",
"IFrame(src= \"https://dash-simple-apps.plotly.host/dash-colorscaleplot/\" ,width=\"100%\" ,height=\"650px\", frameBorder=\"0\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"[source code](https://github.com/plotly/simple-example-chart-apps/tree/master/colorscale)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Reference"
]
},
{
Expand All @@ -404,7 +418,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 6,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -436,27 +450,17 @@
"output_type": "stream",
"text": [
"Collecting git+https://github.com/plotly/publisher.git\n",
" Cloning https://github.com/plotly/publisher.git to /private/var/folders/s5/vjqn03zs7nn8zs_fwzcf14r40000gn/T/pip-req-build-mf6h8_9u\n",
" Cloning https://github.com/plotly/publisher.git to /private/var/folders/s5/vjqn03zs7nn8zs_fwzcf14r40000gn/T/pip-req-build-refmjbml\n",
"Building wheels for collected packages: publisher\n",
" Building wheel for publisher (setup.py) ... \u001b[?25ldone\n",
"\u001b[?25h Stored in directory: /private/var/folders/s5/vjqn03zs7nn8zs_fwzcf14r40000gn/T/pip-ephem-wheel-cache-guvpyq87/wheels/99/3e/a0/fbd22ba24cca72bdbaba53dbc23c1768755fb17b3af0f33966\n",
"\u001b[?25h Stored in directory: /private/var/folders/s5/vjqn03zs7nn8zs_fwzcf14r40000gn/T/pip-ephem-wheel-cache-yj6cqbja/wheels/99/3e/a0/fbd22ba24cca72bdbaba53dbc23c1768755fb17b3af0f33966\n",
"Successfully built publisher\n",
"Installing collected packages: publisher\n",
" Found existing installation: publisher 0.13\n",
" Uninstalling publisher-0.13:\n",
" Successfully uninstalled publisher-0.13\n",
"Successfully installed publisher-0.13\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"/usr/local/lib/python3.7/site-packages/IPython/nbconvert.py:13: ShimWarning: The `IPython.nbconvert` package has been deprecated since IPython 4.0. You should import from nbconvert instead.\n",
" \"You should import from nbconvert instead.\", ShimWarning)\n",
"/usr/local/lib/python3.7/site-packages/publisher/publisher.py:53: UserWarning: Did you \"Save\" this notebook before running this command? Remember to save, always save.\n",
" warnings.warn('Did you \"Save\" this notebook before running this command? '\n"
]
}
],
"source": [
Expand All @@ -478,15 +482,6 @@
" order=11,\n",
" ipynb= '~notebook_demo/187')"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down

0 comments on commit afe6575

Please sign in to comment.