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

Skip to content

Commit 8a98b99

Browse files
committed
update version check for transforms charts in python/version2
1 parent ec460d5 commit 8a98b99

File tree

8 files changed

+93
-313
lines changed

8 files changed

+93
-313
lines changed

_posts/python-version2/transforms/aggregates/2015-06-30-aggregations.html

Lines changed: 30 additions & 56 deletions
Large diffs are not rendered by default.

_posts/python-version2/transforms/aggregates/aggregations.ipynb

Lines changed: 11 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -15,28 +15,7 @@
1515
"metadata": {},
1616
"source": [
1717
"#### Version Check\n",
18-
"Plotly's python package is updated frequently. Run `pip install plotly --upgrade` to use the latest version."
19-
]
20-
},
21-
{
22-
"cell_type": "code",
23-
"execution_count": 1,
24-
"metadata": {},
25-
"outputs": [
26-
{
27-
"data": {
28-
"text/plain": [
29-
"'2.2.3'"
30-
]
31-
},
32-
"execution_count": 1,
33-
"metadata": {},
34-
"output_type": "execute_result"
35-
}
36-
],
37-
"source": [
38-
"import plotly\n",
39-
"plotly.__version__"
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."
4019
]
4120
},
4221
{
@@ -7956,7 +7935,7 @@
79567935
},
79577936
{
79587937
"cell_type": "code",
7959-
"execution_count": 6,
7938+
"execution_count": 1,
79607939
"metadata": {},
79617940
"outputs": [
79627941
{
@@ -7988,28 +7967,18 @@
79887967
"output_type": "stream",
79897968
"text": [
79907969
"Collecting git+https://github.com/plotly/publisher.git\n",
7991-
" Cloning https://github.com/plotly/publisher.git to c:\\users\\branden\\appdata\\local\\temp\\pip-ftibjt4h-build\n",
7970+
" Cloning https://github.com/plotly/publisher.git to /tmp/pip-req-build-lKOc2k\n",
7971+
"Building wheels for collected packages: publisher\n",
7972+
" Running setup.py bdist_wheel for publisher ... \u001b[?25ldone\n",
7973+
"\u001b[?25h Stored in directory: /tmp/pip-ephem-wheel-cache-9tDQug/wheels/99/3e/a0/fbd22ba24cca72bdbaba53dbc23c1768755fb17b3af0f33966\n",
7974+
"Successfully built publisher\n",
79927975
"Installing collected packages: publisher\n",
79937976
" Found existing installation: publisher 0.11\n",
79947977
" Uninstalling publisher-0.11:\n",
79957978
" Successfully uninstalled publisher-0.11\n",
7996-
" Running setup.py install for publisher: started\n",
7997-
" Running setup.py install for publisher: finished with status 'done'\n",
7998-
"Successfully installed publisher-0.11\n"
7999-
]
8000-
},
8001-
{
8002-
"name": "stderr",
8003-
"output_type": "stream",
8004-
"text": [
8005-
"C:\\Users\\Branden\\Anaconda3\\envs\\ipykernel_py2\\lib\\site-packages\\IPython\\nbconvert.py:13: ShimWarning:\n",
8006-
"\n",
8007-
"The `IPython.nbconvert` package has been deprecated. You should import from nbconvert instead.\n",
8008-
"\n",
8009-
"C:\\Users\\Branden\\Anaconda3\\envs\\ipykernel_py2\\lib\\site-packages\\publisher\\publisher.py:53: UserWarning:\n",
8010-
"\n",
8011-
"Did you \"Save\" this notebook before running this command? Remember to save, always save.\n",
8012-
"\n"
7979+
"Successfully installed publisher-0.11\n",
7980+
"\u001b[33mYou are using pip version 10.0.1, however version 18.1 is available.\n",
7981+
"You should consider upgrading via the 'pip install --upgrade pip' command.\u001b[0m\n"
80137982
]
80147983
}
80157984
],
@@ -8059,7 +8028,7 @@
80598028
"name": "python",
80608029
"nbconvert_exporter": "python",
80618030
"pygments_lexer": "ipython2",
8062-
"version": "2.7.12"
8031+
"version": "2.7.15rc1"
80638032
}
80648033
},
80658034
"nbformat": 4,

_posts/python-version2/transforms/filter/2015-06-30-filter.html

Lines changed: 7 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
thumbnail: thumbnail/filter.jpg
77
layout: user-guide
88
language: python
9-
version: 2
109
title: Filter | Plotly
1110
display_as: transforms
1211
has_thumbnail: true
12+
version: 2
1313
page_type: example_index
1414
order: 1
1515
ipynb: ~notebook_demo/195
@@ -19,7 +19,7 @@
1919
</div>
2020
<div class="inner_cell">
2121
<div class="text_cell_render border-box-sizing rendered_html">
22-
<h4 id="New-to-Plotly?">New to Plotly?<a class="anchor-link" href="#New-to-Plotly?">&#194;&#182;</a></h4><p>Plotly's Python library is free and open source! <a href="https://plot.ly/python/getting-started/">Get started</a> by downloading the client and <a href="https://plot.ly/python/getting-started/">reading the primer</a>.
22+
<h4 id="New-to-Plotly?">New to Plotly?<a class="anchor-link" href="#New-to-Plotly?">&#182;</a></h4><p>Plotly's Python library is free and open source! <a href="https://plot.ly/python/getting-started/">Get started</a> by downloading the client and <a href="https://plot.ly/python/getting-started/">reading the primer</a>.
2323
<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>.
2424
<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>
2525

@@ -30,56 +30,22 @@ <h4 id="New-to-Plotly?">New to Plotly?<a class="anchor-link" href="#New-to-Plotl
3030
</div>
3131
<div class="inner_cell">
3232
<div class="text_cell_render border-box-sizing rendered_html">
33-
<h4 id="Version-Check">Version Check<a class="anchor-link" href="#Version-Check">&#194;&#182;</a></h4><p>Plotly's python package is updated frequently. Run <code>pip install plotly --upgrade</code> to use the latest version.</p>
34-
35-
</div>
36-
</div>
37-
</div>
38-
<div class="cell border-box-sizing code_cell rendered">
39-
<div class="input">
40-
<div class="prompt input_prompt">In&nbsp;[1]:</div>
41-
<div class="inner_cell">
42-
<div class="input_area">
43-
<div class=" highlight hl-ipython2"><pre><span></span><span class="kn">import</span> <span class="nn">plotly</span>
44-
<span class="n">plotly</span><span class="o">.</span><span class="n">__version__</span>
45-
</pre></div>
46-
47-
</div>
48-
</div>
49-
</div>
33+
<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>
5034

51-
<div class="output_wrapper">
52-
<div class="output">
53-
54-
55-
<div class="output_area">
56-
57-
<div class="prompt output_prompt">Out[1]:</div>
58-
59-
60-
61-
62-
<div class="output_text output_subarea output_execute_result">
63-
<pre>&#39;2.2.1&#39;</pre>
6435
</div>
65-
6636
</div>
67-
68-
</div>
69-
</div>
70-
7137
</div>
7238
<div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt">
7339
</div>
7440
<div class="inner_cell">
7541
<div class="text_cell_render border-box-sizing rendered_html">
76-
<h4 id="Basic-Example">Basic Example<a class="anchor-link" href="#Basic-Example">&#194;&#182;</a></h4>
42+
<h4 id="Basic-Example">Basic Example<a class="anchor-link" href="#Basic-Example">&#182;</a></h4>
7743
</div>
7844
</div>
7945
</div>
8046
<div class="cell border-box-sizing code_cell rendered">
8147
<div class="input">
82-
<div class="prompt input_prompt">In&nbsp;[2]:</div>
48+
<div class="prompt input_prompt">In&nbsp;[5]:</div>
8349
<div class="inner_cell">
8450
<div class="input_area">
8551
<div class=" highlight hl-ipython2"><pre><span></span><span class="kn">import</span> <span class="nn">plotly.offline</span> <span class="kn">as</span> <span class="nn">off</span>
@@ -136,7 +102,7 @@ <h4 id="Basic-Example">Basic Example<a class="anchor-link" href="#Basic-Example"
136102

137103

138104
<div class="output_html rendered_html output_subarea ">
139-
<div id="f2e2a0c0-0ad3-48e8-a196-89c9c1e7bf14" style="height: 525px; width: 100%;" class="plotly-graph-div"></div><script type="text/javascript">require(["plotly"], function(Plotly) { window.PLOTLYENV=window.PLOTLYENV || {};window.PLOTLYENV.BASE_URL="https://plot.ly";Plotly.newPlot("f2e2a0c0-0ad3-48e8-a196-89c9c1e7bf14", [{"y": [1, 6, 2, 8, 2, 9, 4, 5, 1, 5, 2, 8], "x": ["Moe", "Larry", "Curly", "Moe", "Larry", "Curly", "Moe", "Larry", "Curly", "Moe", "Larry", "Curly"], "type": "scatter", "transforms": [{"operation": ">", "type": "filter", "target": "y", "value": 4}], "mode": "markers"}], {"title": "Scores > 4"}, {"linkText": "Export to plot.ly", "showLink": true})});</script>
105+
<div id="75dedf95-2670-4250-8e01-5eebc775e6ca" style="height: 525px; width: 100%;" class="plotly-graph-div"></div><script type="text/javascript">require(["plotly"], function(Plotly) { window.PLOTLYENV=window.PLOTLYENV || {};window.PLOTLYENV.BASE_URL="https://plot.ly";Plotly.newPlot("75dedf95-2670-4250-8e01-5eebc775e6ca", [{"y": [1, 6, 2, 8, 2, 9, 4, 5, 1, 5, 2, 8], "x": ["Moe", "Larry", "Curly", "Moe", "Larry", "Curly", "Moe", "Larry", "Curly", "Moe", "Larry", "Curly"], "type": "scatter", "transforms": [{"operation": ">", "type": "filter", "target": "y", "value": 4}], "mode": "markers"}], {"title": "Scores > 4"}, {"linkText": "Export to plot.ly", "showLink": true})});</script>
140106
</div>
141107

142108
</div>
@@ -149,7 +115,7 @@ <h4 id="Basic-Example">Basic Example<a class="anchor-link" href="#Basic-Example"
149115
</div>
150116
<div class="inner_cell">
151117
<div class="text_cell_render border-box-sizing rendered_html">
152-
<h4 id="Reference">Reference<a class="anchor-link" href="#Reference">&#194;&#182;</a></h4><p>See <a href="https://plot.ly/python/reference/">https://plot.ly/python/reference/</a> for more information and chart attribute options!</p>
118+
<h4 id="Reference">Reference<a class="anchor-link" href="#Reference">&#182;</a></h4><p>See <a href="https://plot.ly/python/reference/">https://plot.ly/python/reference/</a> for more information and chart attribute options!</p>
153119

154120
</div>
155121
</div>

_posts/python-version2/transforms/filter/filter.ipynb

Lines changed: 11 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -15,28 +15,7 @@
1515
"metadata": {},
1616
"source": [
1717
"#### Version Check\n",
18-
"Plotly's python package is updated frequently. Run `pip install plotly --upgrade` to use the latest version."
19-
]
20-
},
21-
{
22-
"cell_type": "code",
23-
"execution_count": 4,
24-
"metadata": {},
25-
"outputs": [
26-
{
27-
"data": {
28-
"text/plain": [
29-
"'2.2.1'"
30-
]
31-
},
32-
"execution_count": 4,
33-
"metadata": {},
34-
"output_type": "execute_result"
35-
}
36-
],
37-
"source": [
38-
"import plotly\n",
39-
"plotly.__version__"
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."
4019
]
4120
},
4221
{
@@ -161,7 +140,7 @@
161140
},
162141
{
163142
"cell_type": "code",
164-
"execution_count": 6,
143+
"execution_count": 1,
165144
"metadata": {},
166145
"outputs": [
167146
{
@@ -193,13 +172,18 @@
193172
"output_type": "stream",
194173
"text": [
195174
"Collecting git+https://github.com/plotly/publisher.git\n",
196-
" Cloning https://github.com/plotly/publisher.git to /private/var/folders/k_/zf24qrfn2kg710j9pdrxzrz40000gn/T/pip-Fl19iM-build\n",
175+
" Cloning https://github.com/plotly/publisher.git to /tmp/pip-req-build-srgcvR\n",
176+
"Building wheels for collected packages: publisher\n",
177+
" Running setup.py bdist_wheel for publisher ... \u001b[?25ldone\n",
178+
"\u001b[?25h Stored in directory: /tmp/pip-ephem-wheel-cache-stV9i4/wheels/99/3e/a0/fbd22ba24cca72bdbaba53dbc23c1768755fb17b3af0f33966\n",
179+
"Successfully built publisher\n",
197180
"Installing collected packages: publisher\n",
198181
" Found existing installation: publisher 0.11\n",
199182
" Uninstalling publisher-0.11:\n",
200183
" Successfully uninstalled publisher-0.11\n",
201-
" Running setup.py install for publisher ... \u001b[?25ldone\n",
202-
"\u001b[?25hSuccessfully installed publisher-0.11\n"
184+
"Successfully installed publisher-0.11\n",
185+
"\u001b[33mYou are using pip version 10.0.1, however version 18.1 is available.\n",
186+
"You should consider upgrading via the 'pip install --upgrade pip' command.\u001b[0m\n"
203187
]
204188
}
205189
],
@@ -249,7 +233,7 @@
249233
"name": "python",
250234
"nbconvert_exporter": "python",
251235
"pygments_lexer": "ipython2",
252-
"version": "2.7.10"
236+
"version": "2.7.15rc1"
253237
}
254238
},
255239
"nbformat": 4,

_posts/python-version2/transforms/groupby/2015-06-30-groupby.html

Lines changed: 5 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
thumbnail: thumbnail/groupby.jpg
77
layout: user-guide
88
language: python
9-
version: 2
109
title: Group By | Plotly
1110
display_as: transforms
1211
has_thumbnail: true
12+
version: 2
1313
page_type: example_index
1414
order: 2
1515
ipynb: ~notebook_demo/194
@@ -19,7 +19,7 @@
1919
</div>
2020
<div class="inner_cell">
2121
<div class="text_cell_render border-box-sizing rendered_html">
22-
<h4 id="New-to-Plotly?">New to Plotly?<a class="anchor-link" href="#New-to-Plotly?">&#194;&#182;</a></h4><p>Plotly's Python library is free and open source! <a href="https://plot.ly/python/getting-started/">Get started</a> by downloading the client and <a href="https://plot.ly/python/getting-started/">reading the primer</a>.
22+
<h4 id="New-to-Plotly?">New to Plotly?<a class="anchor-link" href="#New-to-Plotly?">&#182;</a></h4><p>Plotly's Python library is free and open source! <a href="https://plot.ly/python/getting-started/">Get started</a> by downloading the client and <a href="https://plot.ly/python/getting-started/">reading the primer</a>.
2323
<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>.
2424
<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>
2525

@@ -30,50 +30,16 @@ <h4 id="New-to-Plotly?">New to Plotly?<a class="anchor-link" href="#New-to-Plotl
3030
</div>
3131
<div class="inner_cell">
3232
<div class="text_cell_render border-box-sizing rendered_html">
33-
<h4 id="Version-Check">Version Check<a class="anchor-link" href="#Version-Check">&#194;&#182;</a></h4><p>Plotly's python package is updated frequently. Run <code>pip install plotly --upgrade</code> to use the latest version.</p>
34-
35-
</div>
36-
</div>
37-
</div>
38-
<div class="cell border-box-sizing code_cell rendered">
39-
<div class="input">
40-
<div class="prompt input_prompt">In&nbsp;[7]:</div>
41-
<div class="inner_cell">
42-
<div class="input_area">
43-
<div class=" highlight hl-ipython2"><pre><span></span><span class="kn">import</span> <span class="nn">plotly</span>
44-
<span class="n">plotly</span><span class="o">.</span><span class="n">__version__</span>
45-
</pre></div>
46-
47-
</div>
48-
</div>
49-
</div>
33+
<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>
5034

51-
<div class="output_wrapper">
52-
<div class="output">
53-
54-
55-
<div class="output_area">
56-
57-
<div class="prompt output_prompt">Out[7]:</div>
58-
59-
60-
61-
62-
<div class="output_text output_subarea output_execute_result">
63-
<pre>&#39;2.2.1&#39;</pre>
6435
</div>
65-
6636
</div>
67-
68-
</div>
69-
</div>
70-
7137
</div>
7238
<div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt">
7339
</div>
7440
<div class="inner_cell">
7541
<div class="text_cell_render border-box-sizing rendered_html">
76-
<h4 id="Basic-Example">Basic Example<a class="anchor-link" href="#Basic-Example">&#194;&#182;</a></h4>
42+
<h4 id="Basic-Example">Basic Example<a class="anchor-link" href="#Basic-Example">&#182;</a></h4>
7743
</div>
7844
</div>
7945
</div>
@@ -148,7 +114,7 @@ <h4 id="Basic-Example">Basic Example<a class="anchor-link" href="#Basic-Example"
148114
</div>
149115
<div class="inner_cell">
150116
<div class="text_cell_render border-box-sizing rendered_html">
151-
<h4 id="Reference">Reference<a class="anchor-link" href="#Reference">&#194;&#182;</a></h4><p>See <a href="https://plot.ly/python/reference/">https://plot.ly/python/reference/</a> for more information and chart attribute options!</p>
117+
<h4 id="Reference">Reference<a class="anchor-link" href="#Reference">&#182;</a></h4><p>See <a href="https://plot.ly/python/reference/">https://plot.ly/python/reference/</a> for more information and chart attribute options!</p>
152118

153119
</div>
154120
</div>

0 commit comments

Comments
 (0)