Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cfe6659

Browse files
committed
update version check for 3d charts in python/version2
1 parent a10eefa commit cfe6659

17 files changed

+253
-1020
lines changed

_posts/python-version2/3d/3d-bubble/2015-06-30-3dbubble.html

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
layout: user-guide
88
name: 3D Bubble Charts
99
language: python
10-
version: 2
1110
title: Python 3D Bubble Charts | plotly
1211
display_as: 3d_charts
1312
has_thumbnail: true
13+
version: 2
1414
ipynb: ~notebook_demo/62
1515
order: 2
1616
page_type: u-guide
@@ -24,6 +24,15 @@ <h4 id="New-to-Plotly?">New to Plotly?<a class="anchor-link" href="#New-to-Plotl
2424
<br>You can set up Plotly to work in <a href="https://plot.ly/python/getting-started/#initialization-for-online-plotting">online</a> or <a href="https://plot.ly/python/getting-started/#initialization-for-offline-plotting">offline</a> mode, or in <a href="https://plot.ly/python/getting-started/#start-plotting-online">jupyter notebooks</a>.
2525
<br>We also have a quick-reference <a href="https://images.plot.ly/plotly-documentation/images/python_cheat_sheet.pdf">cheatsheet</a> (new!) to help you get started!</p>
2626

27+
</div>
28+
</div>
29+
</div>
30+
<div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt">
31+
</div>
32+
<div class="inner_cell">
33+
<div class="text_cell_render border-box-sizing rendered_html">
34+
<h4 id="Version-Check">Version Check<a class="anchor-link" href="#Version-Check">&#182;</a></h4><p>This is documentation for version 2 of plotly.py. See the <a href="https://github.com/plotly/plotly.py/blob/master/CHANGELOG.md#270---2018-05-23">changelog</a> for differences between package versions.</p>
35+
2736
</div>
2837
</div>
2938
</div>
@@ -135,7 +144,7 @@ <h4 id="Bubble-Chart-Sized-by-a-Variable">Bubble Chart Sized by a Variable<a cla
135144
<span class="n">sizeref</span> <span class="o">=</span> <span class="mi">750</span><span class="p">,</span> <span class="c1"># info on sizeref: https://plot.ly/python/reference/#scatter-marker-sizeref</span>
136145
<span class="n">size</span> <span class="o">=</span> <span class="n">planet_diameter</span><span class="p">,</span>
137146
<span class="n">color</span> <span class="o">=</span> <span class="n">planet_colors</span><span class="p">,</span>
138-
<span class="p">)</span>
147+
<span class="p">)</span>
139148
<span class="p">)</span>
140149
<span class="n">data</span><span class="o">=</span><span class="p">[</span><span class="n">trace1</span><span class="p">]</span>
141150

@@ -216,7 +225,7 @@ <h4 id="Edit-the-Colorbar">Edit the Colorbar<a class="anchor-link" href="#Edit-t
216225
<span class="n">color</span> <span class="o">=</span> <span class="n">temperatures</span><span class="p">,</span>
217226
<span class="n">colorbar</span> <span class="o">=</span> <span class="nb">dict</span><span class="p">(</span><span class="n">title</span> <span class="o">=</span> <span class="s1">&#39;Mean&lt;br&gt;Temperature&#39;</span><span class="p">),</span>
218227
<span class="n">colorscale</span><span class="o">=</span><span class="p">[[</span><span class="mi">0</span><span class="p">,</span> <span class="s1">&#39;rgb(5, 10, 172)&#39;</span><span class="p">],</span> <span class="p">[</span><span class="o">.</span><span class="mi">3</span><span class="p">,</span> <span class="s1">&#39;rgb(255, 255, 255)&#39;</span><span class="p">],</span> <span class="p">[</span><span class="mi">1</span><span class="p">,</span> <span class="s1">&#39;rgb(178, 10, 28)&#39;</span><span class="p">]]</span>
219-
<span class="p">)</span>
228+
<span class="p">)</span>
220229
<span class="p">)</span>
221230
<span class="n">data</span><span class="o">=</span><span class="p">[</span><span class="n">trace1</span><span class="p">]</span>
222231

@@ -268,6 +277,6 @@ <h4 id="Reference">Reference<a class="anchor-link" href="#Reference">&#182;</a><
268277
</div>
269278
</div>
270279
</div>
280+
271281

272-
273-
{% endraw %}
282+
{% endraw %}

_posts/python-version2/3d/3d-bubble/3dbubble.ipynb

Lines changed: 20 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@
1010
"<br>We also have a quick-reference [cheatsheet](https://images.plot.ly/plotly-documentation/images/python_cheat_sheet.pdf) (new!) to help you get started!"
1111
]
1212
},
13+
{
14+
"cell_type": "markdown",
15+
"metadata": {},
16+
"source": [
17+
"#### Version Check\n",
18+
"This is documentation for version 2 of plotly.py. See the [changelog](https://github.com/plotly/plotly.py/blob/master/CHANGELOG.md#270---2018-05-23) for differences between package versions."
19+
]
20+
},
1321
{
1422
"cell_type": "markdown",
1523
"metadata": {},
@@ -224,7 +232,7 @@
224232
},
225233
{
226234
"cell_type": "code",
227-
"execution_count": 4,
235+
"execution_count": 1,
228236
"metadata": {},
229237
"outputs": [
230238
{
@@ -237,7 +245,7 @@
237245
]
238246
},
239247
"metadata": {},
240-
"output_type": "execute_result"
248+
"output_type": "display_data"
241249
},
242250
{
243251
"data": {
@@ -249,37 +257,25 @@
249257
]
250258
},
251259
"metadata": {},
252-
"output_type": "execute_result"
260+
"output_type": "display_data"
253261
},
254262
{
255263
"name": "stdout",
256264
"output_type": "stream",
257265
"text": [
258266
"Collecting git+https://github.com/plotly/publisher.git\n",
259-
" Cloning https://github.com/plotly/publisher.git to c:\\users\\brand\\appdata\\local\\temp\\pip-req-build-ju5537hh\n",
267+
" Cloning https://github.com/plotly/publisher.git to /tmp/pip-req-build-p9MDeB\n",
268+
"Building wheels for collected packages: publisher\n",
269+
" Running setup.py bdist_wheel for publisher ... \u001b[?25ldone\n",
270+
"\u001b[?25h Stored in directory: /tmp/pip-ephem-wheel-cache-ckiOfd/wheels/99/3e/a0/fbd22ba24cca72bdbaba53dbc23c1768755fb17b3af0f33966\n",
271+
"Successfully built publisher\n",
260272
"Installing collected packages: publisher\n",
261273
" Found existing installation: publisher 0.11\n",
262274
" Uninstalling publisher-0.11:\n",
263275
" Successfully uninstalled publisher-0.11\n",
264-
" Running setup.py install for publisher: started\n",
265-
" Running setup.py install for publisher: finished with status 'done'\n",
266-
"Successfully installed publisher-0.11\n"
267-
]
268-
},
269-
{
270-
"name": "stderr",
271-
"output_type": "stream",
272-
"text": [
273-
"You are using pip version 10.0.0, however version 10.0.1 is available.\n",
274-
"You should consider upgrading via the 'python -m pip install --upgrade pip' command.\n",
275-
"C:\\Python27\\lib\\site-packages\\IPython\\nbconvert.py:13: ShimWarning:\n",
276-
"\n",
277-
"The `IPython.nbconvert` package has been deprecated since IPython 4.0. You should import from nbconvert instead.\n",
278-
"\n",
279-
"C:\\Python27\\lib\\site-packages\\publisher\\publisher.py:53: UserWarning:\n",
280-
"\n",
281-
"Did you \"Save\" this notebook before running this command? Remember to save, always save.\n",
282-
"\n"
276+
"Successfully installed publisher-0.11\n",
277+
"\u001b[33mYou are using pip version 10.0.1, however version 18.1 is available.\n",
278+
"You should consider upgrading via the 'pip install --upgrade pip' command.\u001b[0m\n"
283279
]
284280
}
285281
],
@@ -329,7 +325,7 @@
329325
"name": "python",
330326
"nbconvert_exporter": "python",
331327
"pygments_lexer": "ipython2",
332-
"version": "2.7.14"
328+
"version": "2.7.15rc1"
333329
}
334330
},
335331
"nbformat": 4,

_posts/python-version2/3d/3d-clusters/2015-06-30-3d-clusters.html

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@
77
layout: user-guide
88
name: 3d Clustering
99
language: python
10-
version: 2
1110
title: 3D Point Clustering in Python | plotly
1211
display_as: 3d_charts
1312
has_thumbnail: true
14-
order: 14
13+
version: 2
1514
ipynb: ~notebook_demo/74
15+
order: 14
16+
page_type: u-guide
1617
---
1718
{% raw %}
18-
<div class="cell border-box-sizing text_cell rendered">
19-
<div class="prompt input_prompt">
19+
<div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt">
2020
</div>
2121
<div class="inner_cell">
2222
<div class="text_cell_render border-box-sizing rendered_html">
@@ -27,8 +27,16 @@ <h4 id="New-to-Plotly?">New to Plotly?<a class="anchor-link" href="#New-to-Plotl
2727
</div>
2828
</div>
2929
</div>
30-
<div class="cell border-box-sizing text_cell rendered">
31-
<div class="prompt input_prompt">
30+
<div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt">
31+
</div>
32+
<div class="inner_cell">
33+
<div class="text_cell_render border-box-sizing rendered_html">
34+
<h4 id="Version-Check">Version Check<a class="anchor-link" href="#Version-Check">&#182;</a></h4><p>This is documentation for version 2 of plotly.py. See the <a href="https://github.com/plotly/plotly.py/blob/master/CHANGELOG.md#270---2018-05-23">changelog</a> for differences between package versions.</p>
35+
36+
</div>
37+
</div>
38+
</div>
39+
<div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt">
3240
</div>
3341
<div class="inner_cell">
3442
<div class="text_cell_render border-box-sizing rendered_html">
@@ -82,7 +90,11 @@ <h4 id="3D-Clustering-with-Alpha-Shapes">3D Clustering with Alpha Shapes<a class
8290
<div class="output">
8391

8492

85-
<div class="output_area"><div class="prompt output_prompt">Out[5]:</div>
93+
<div class="output_area">
94+
95+
<div class="prompt output_prompt">Out[5]:</div>
96+
97+
8698

8799
<div class="output_html rendered_html output_subarea output_execute_result">
88100
<iframe id="igraph" scrolling="no" style="border:none;" seamless="seamless" src="https://plot.ly/~demo_account/94.embed" height="525px" width="100%"></iframe>
@@ -94,22 +106,23 @@ <h4 id="3D-Clustering-with-Alpha-Shapes">3D Clustering with Alpha Shapes<a class
94106
</div>
95107

96108
</div>
97-
<div class="cell border-box-sizing text_cell rendered">
98-
<div class="prompt input_prompt">
109+
<div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt">
99110
</div>
100111
<div class="inner_cell">
101112
<div class="text_cell_render border-box-sizing rendered_html">
102113
<h4 id="Reference">Reference<a class="anchor-link" href="#Reference">&#182;</a></h4>
103114
</div>
104115
</div>
105116
</div>
106-
<div class="cell border-box-sizing text_cell rendered">
107-
<div class="prompt input_prompt">
117+
<div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt">
108118
</div>
109119
<div class="inner_cell">
110120
<div class="text_cell_render border-box-sizing rendered_html">
111121
<p>See <a href="https://plot.ly/python/reference/#mesh3d">https://plot.ly/python/reference/#mesh3d</a> for more information regarding subplots!</p>
112122

113123
</div>
114124
</div>
115-
</div>{% endraw %}
125+
</div>
126+
127+
128+
{% endraw %}

_posts/python-version2/3d/3d-clusters/3d-clusters.ipynb

Lines changed: 28 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "markdown",
5-
"metadata": {
6-
"deletable": true,
7-
"editable": true
8-
},
5+
"metadata": {},
96
"source": [
107
"#### New to Plotly?\n",
118
"Plotly's Python library is free and open source! [Get started](https://plot.ly/python/getting-started/) by downloading the client and [reading the primer](https://plot.ly/python/getting-started/).\n",
@@ -15,22 +12,23 @@
1512
},
1613
{
1714
"cell_type": "markdown",
18-
"metadata": {
19-
"deletable": true,
20-
"editable": true
21-
},
15+
"metadata": {},
16+
"source": [
17+
"#### Version Check\n",
18+
"This is documentation for version 2 of plotly.py. See the [changelog](https://github.com/plotly/plotly.py/blob/master/CHANGELOG.md#270---2018-05-23) for differences between package versions."
19+
]
20+
},
21+
{
22+
"cell_type": "markdown",
23+
"metadata": {},
2224
"source": [
2325
"#### 3D Clustering with Alpha Shapes"
2426
]
2527
},
2628
{
2729
"cell_type": "code",
2830
"execution_count": 5,
29-
"metadata": {
30-
"collapsed": false,
31-
"deletable": true,
32-
"editable": true
33-
},
31+
"metadata": {},
3432
"outputs": [
3533
{
3634
"data": {
@@ -82,32 +80,22 @@
8280
},
8381
{
8482
"cell_type": "markdown",
85-
"metadata": {
86-
"deletable": true,
87-
"editable": true
88-
},
83+
"metadata": {},
8984
"source": [
9085
"#### Reference"
9186
]
9287
},
9388
{
9489
"cell_type": "markdown",
95-
"metadata": {
96-
"deletable": true,
97-
"editable": true
98-
},
90+
"metadata": {},
9991
"source": [
10092
"See https://plot.ly/python/reference/#mesh3d for more information regarding subplots!"
10193
]
10294
},
10395
{
10496
"cell_type": "code",
10597
"execution_count": 1,
106-
"metadata": {
107-
"collapsed": false,
108-
"deletable": true,
109-
"editable": true
110-
},
98+
"metadata": {},
11199
"outputs": [
112100
{
113101
"data": {
@@ -138,23 +126,18 @@
138126
"output_type": "stream",
139127
"text": [
140128
"Collecting git+https://github.com/plotly/publisher.git\n",
141-
" Cloning https://github.com/plotly/publisher.git to /var/folders/ld/6cl3s_l50wd40tdjq2b03jxh0000gp/T/pip-OIM1NW-build\n",
129+
" Cloning https://github.com/plotly/publisher.git to /tmp/pip-req-build-fxB2_5\n",
130+
"Building wheels for collected packages: publisher\n",
131+
" Running setup.py bdist_wheel for publisher ... \u001b[?25ldone\n",
132+
"\u001b[?25h Stored in directory: /tmp/pip-ephem-wheel-cache-PjJJnd/wheels/99/3e/a0/fbd22ba24cca72bdbaba53dbc23c1768755fb17b3af0f33966\n",
133+
"Successfully built publisher\n",
142134
"Installing collected packages: publisher\n",
143-
" Found existing installation: publisher 0.10\n",
144-
" Uninstalling publisher-0.10:\n",
145-
" Successfully uninstalled publisher-0.10\n",
146-
" Running setup.py install for publisher ... \u001b[?25l-\b \b\\\b \bdone\n",
147-
"\u001b[?25hSuccessfully installed publisher-0.10\n"
148-
]
149-
},
150-
{
151-
"name": "stderr",
152-
"output_type": "stream",
153-
"text": [
154-
"/Users/brandendunbar/Desktop/test/venv/lib/python2.7/site-packages/IPython/nbconvert.py:13: ShimWarning: The `IPython.nbconvert` package has been deprecated. You should import from nbconvert instead.\n",
155-
" \"You should import from nbconvert instead.\", ShimWarning)\n",
156-
"/Users/brandendunbar/Desktop/test/venv/lib/python2.7/site-packages/publisher/publisher.py:53: UserWarning: Did you \"Save\" this notebook before running this command? Remember to save, always save.\n",
157-
" warnings.warn('Did you \"Save\" this notebook before running this command? '\n"
135+
" Found existing installation: publisher 0.11\n",
136+
" Uninstalling publisher-0.11:\n",
137+
" Successfully uninstalled publisher-0.11\n",
138+
"Successfully installed publisher-0.11\n",
139+
"\u001b[33mYou are using pip version 10.0.1, however version 18.1 is available.\n",
140+
"You should consider upgrading via the 'pip install --upgrade pip' command.\u001b[0m\n"
158141
]
159142
}
160143
],
@@ -182,9 +165,7 @@
182165
"cell_type": "code",
183166
"execution_count": null,
184167
"metadata": {
185-
"collapsed": true,
186-
"deletable": true,
187-
"editable": true
168+
"collapsed": true
188169
},
189170
"outputs": [],
190171
"source": []
@@ -207,9 +188,9 @@
207188
"name": "python",
208189
"nbconvert_exporter": "python",
209190
"pygments_lexer": "ipython2",
210-
"version": "2.7.12"
191+
"version": "2.7.15rc1"
211192
}
212193
},
213194
"nbformat": 4,
214-
"nbformat_minor": 0
195+
"nbformat_minor": 1
215196
}

0 commit comments

Comments
 (0)