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

Skip to content

Commit 6d435a2

Browse files
committed
update version check for animations in python/version2
1 parent 5a50228 commit 6d435a2

File tree

8 files changed

+162
-401
lines changed

8 files changed

+162
-401
lines changed

_posts/python-version2/animations/filled-area-animation/2015-06-30-filled-area-animation.html

Lines changed: 27 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,16 @@
77
layout: user-guide
88
name: Filled-Area Animation
99
language: python
10-
version: 2
1110
title: Filled-Area Animation | plotly
1211
display_as: animations
1312
has_thumbnail: true
13+
version: 2
1414
page_type: example_index
1515
order: 3
1616
ipynb: ~notebook_demo/128
1717
---
1818
{% raw %}
19-
<div class="cell border-box-sizing text_cell rendered">
20-
<div class="prompt input_prompt">
19+
<div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt">
2120
</div>
2221
<div class="inner_cell">
2322
<div class="text_cell_render border-box-sizing rendered_html">
@@ -28,49 +27,16 @@ <h4 id="New-to-Plotly?">New to Plotly?<a class="anchor-link" href="#New-to-Plotl
2827
</div>
2928
</div>
3029
</div>
31-
<div class="cell border-box-sizing text_cell rendered">
32-
<div class="prompt input_prompt">
30+
<div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt">
3331
</div>
3432
<div class="inner_cell">
3533
<div class="text_cell_render border-box-sizing rendered_html">
36-
<h4 id="Version-Check">Version Check<a class="anchor-link" href="#Version-Check">&#182;</a></h4><p>Note: Animations are available in version 1.12.10+
37-
Run <code>pip install plotly --upgrade</code> to update your Plotly version.</p>
38-
39-
</div>
40-
</div>
41-
</div>
42-
<div class="cell border-box-sizing code_cell rendered">
43-
<div class="input">
44-
<div class="prompt input_prompt">In&nbsp;[1]:</div>
45-
<div class="inner_cell">
46-
<div class="input_area">
47-
<div class=" highlight hl-ipython2"><pre><span></span><span class="kn">import</span> <span class="nn">plotly</span>
48-
<span class="n">plotly</span><span class="o">.</span><span class="n">__version__</span>
49-
</pre></div>
50-
51-
</div>
52-
</div>
53-
</div>
54-
55-
<div class="output_wrapper">
56-
<div class="output">
57-
58-
59-
<div class="output_area"><div class="prompt output_prompt">Out[1]:</div>
60-
61-
62-
<div class="output_text output_subarea output_execute_result">
63-
<pre>&#39;1.12.12&#39;</pre>
64-
</div>
65-
66-
</div>
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>
6735

6836
</div>
6937
</div>
70-
7138
</div>
72-
<div class="cell border-box-sizing text_cell rendered">
73-
<div class="prompt input_prompt">
39+
<div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt">
7440
</div>
7541
<div class="inner_cell">
7642
<div class="text_cell_render border-box-sizing rendered_html">
@@ -109,7 +75,11 @@ <h4 id="Import-Data">Import Data<a class="anchor-link" href="#Import-Data">&#182
10975
<div class="output">
11076

11177

112-
<div class="output_area"><div class="prompt output_prompt">Out[2]:</div>
78+
<div class="output_area">
79+
80+
<div class="prompt output_prompt">Out[2]:</div>
81+
82+
11383

11484
<div class="output_html rendered_html output_subarea output_execute_result">
11585
<iframe id="igraph" scrolling="no" style="border:none;" seamless="seamless" src="https://plot.ly/~AdamKulidjian/2193.embed" height="380px" width="100%"></iframe>
@@ -121,8 +91,7 @@ <h4 id="Import-Data">Import Data<a class="anchor-link" href="#Import-Data">&#182
12191
</div>
12292

12393
</div>
124-
<div class="cell border-box-sizing text_cell rendered">
125-
<div class="prompt input_prompt">
94+
<div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt">
12695
</div>
12796
<div class="inner_cell">
12897
<div class="text_cell_render border-box-sizing rendered_html">
@@ -156,7 +125,11 @@ <h4 id="Make-the-Grid">Make the Grid<a class="anchor-link" href="#Make-the-Grid"
156125
<div class="output">
157126

158127

159-
<div class="output_area"><div class="prompt output_prompt">Out[3]:</div>
128+
<div class="output_area">
129+
130+
<div class="prompt output_prompt">Out[3]:</div>
131+
132+
160133

161134

162135
<div class="output_text output_subarea output_execute_result">
@@ -169,8 +142,7 @@ <h4 id="Make-the-Grid">Make the Grid<a class="anchor-link" href="#Make-the-Grid"
169142
</div>
170143

171144
</div>
172-
<div class="cell border-box-sizing text_cell rendered">
173-
<div class="prompt input_prompt">
145+
<div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt">
174146
</div>
175147
<div class="inner_cell">
176148
<div class="text_cell_render border-box-sizing rendered_html">
@@ -240,7 +212,11 @@ <h4 id="Make-the-Figure">Make the Figure<a class="anchor-link" href="#Make-the-F
240212
<div class="output">
241213

242214

243-
<div class="output_area"><div class="prompt output_prompt">Out[4]:</div>
215+
<div class="output_area">
216+
217+
<div class="prompt output_prompt">Out[4]:</div>
218+
219+
244220

245221
<div class="output_html rendered_html output_subarea output_execute_result">
246222
<iframe id="igraph" scrolling="no" style="border:none;" seamless="seamless" src="https://plot.ly/~AdamKulidjian/2202.embed" height="400px" width="800px"></iframe>
@@ -252,8 +228,7 @@ <h4 id="Make-the-Figure">Make the Figure<a class="anchor-link" href="#Make-the-F
252228
</div>
253229

254230
</div>
255-
<div class="cell border-box-sizing text_cell rendered">
256-
<div class="prompt input_prompt">
231+
<div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt">
257232
</div>
258233
<div class="inner_cell">
259234
<div class="text_cell_render border-box-sizing rendered_html">
@@ -262,4 +237,7 @@ <h4 id="Reference">Reference<a class="anchor-link" href="#Reference">&#182;</a><
262237

263238
</div>
264239
</div>
265-
</div>{% endraw %}
240+
</div>
241+
242+
243+
{% endraw %}

_posts/python-version2/animations/filled-area-animation/filled-area-animation.ipynb

Lines changed: 18 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -15,31 +15,7 @@
1515
"metadata": {},
1616
"source": [
1717
"#### Version Check\n",
18-
"Note: Animations are available in version 1.12.10+\n",
19-
"Run `pip install plotly --upgrade` to update your Plotly version."
20-
]
21-
},
22-
{
23-
"cell_type": "code",
24-
"execution_count": 1,
25-
"metadata": {
26-
"collapsed": false
27-
},
28-
"outputs": [
29-
{
30-
"data": {
31-
"text/plain": [
32-
"'1.12.12'"
33-
]
34-
},
35-
"execution_count": 1,
36-
"metadata": {},
37-
"output_type": "execute_result"
38-
}
39-
],
40-
"source": [
41-
"import plotly\n",
42-
"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."
4319
]
4420
},
4521
{
@@ -54,7 +30,6 @@
5430
"cell_type": "code",
5531
"execution_count": 2,
5632
"metadata": {
57-
"collapsed": false,
5833
"scrolled": true
5934
},
6035
"outputs": [
@@ -100,9 +75,7 @@
10075
{
10176
"cell_type": "code",
10277
"execution_count": 3,
103-
"metadata": {
104-
"collapsed": false
105-
},
78+
"metadata": {},
10679
"outputs": [
10780
{
10881
"data": {
@@ -139,9 +112,7 @@
139112
{
140113
"cell_type": "code",
141114
"execution_count": 4,
142-
"metadata": {
143-
"collapsed": false
144-
},
115+
"metadata": {},
145116
"outputs": [
146117
{
147118
"data": {
@@ -218,10 +189,8 @@
218189
},
219190
{
220191
"cell_type": "code",
221-
"execution_count": 5,
222-
"metadata": {
223-
"collapsed": false
224-
},
192+
"execution_count": 1,
193+
"metadata": {},
225194
"outputs": [
226195
{
227196
"data": {
@@ -252,27 +221,18 @@
252221
"output_type": "stream",
253222
"text": [
254223
"Collecting git+https://github.com/plotly/publisher.git\n",
255-
" Cloning https://github.com/plotly/publisher.git to /private/var/folders/tc/bs9g6vrd36q74m5t8h9cgphh0000gn/T/pip-19JNWN-build\n",
224+
" Cloning https://github.com/plotly/publisher.git to /tmp/pip-req-build-7EanDv\n",
225+
"Building wheels for collected packages: publisher\n",
226+
" Running setup.py bdist_wheel for publisher ... \u001b[?25ldone\n",
227+
"\u001b[?25h Stored in directory: /tmp/pip-ephem-wheel-cache-7FSQ99/wheels/99/3e/a0/fbd22ba24cca72bdbaba53dbc23c1768755fb17b3af0f33966\n",
228+
"Successfully built publisher\n",
256229
"Installing collected packages: publisher\n",
257-
" Found existing installation: publisher 0.10\n",
258-
" Uninstalling publisher-0.10:\n",
259-
" Successfully uninstalled publisher-0.10\n",
260-
" Running setup.py install for publisher ... \u001b[?25l-\b \bdone\n",
261-
"\u001b[?25hSuccessfully installed publisher-0.10\n"
262-
]
263-
},
264-
{
265-
"name": "stderr",
266-
"output_type": "stream",
267-
"text": [
268-
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/nbconvert.py:13: ShimWarning:\n",
269-
"\n",
270-
"The `IPython.nbconvert` package has been deprecated. You should import from nbconvert instead.\n",
271-
"\n",
272-
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/publisher/publisher.py:53: UserWarning:\n",
273-
"\n",
274-
"Did you \"Save\" this notebook before running this command? Remember to save, always save.\n",
275-
"\n"
230+
" Found existing installation: publisher 0.11\n",
231+
" Uninstalling publisher-0.11:\n",
232+
" Successfully uninstalled publisher-0.11\n",
233+
"Successfully installed publisher-0.11\n",
234+
"\u001b[33mYou are using pip version 10.0.1, however version 18.1 is available.\n",
235+
"You should consider upgrading via the 'pip install --upgrade pip' command.\u001b[0m\n"
276236
]
277237
}
278238
],
@@ -320,9 +280,9 @@
320280
"name": "python",
321281
"nbconvert_exporter": "python",
322282
"pygments_lexer": "ipython2",
323-
"version": "2.7.12"
283+
"version": "2.7.15rc1"
324284
}
325285
},
326286
"nbformat": 4,
327-
"nbformat_minor": 0
287+
"nbformat_minor": 1
328288
}

0 commit comments

Comments
 (0)