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

Skip to content

Commit ec460d5

Browse files
committed
update version check for subplot charts in python/version2
1 parent cfe6659 commit ec460d5

14 files changed

+256
-564
lines changed

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

Lines changed: 25 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
layout: user-guide
88
name: 3D Subplots
99
language: python
10-
version: 2
1110
title: 3D Subplots in Python | plotly
1211
display_as: multiple_axes
1312
has_thumbnail: true
13+
version: 2
1414
ipynb: ~notebook_demo/75
1515
order: 4
1616
page_type: u-guide
@@ -20,59 +20,25 @@
2020
</div>
2121
<div class="inner_cell">
2222
<div class="text_cell_render border-box-sizing rendered_html">
23-
<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>.
23+
<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>.
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>
26-
<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 pip install plotly --upgrade to use the latest version.</p>
27-
28-
</div>
29-
</div>
30-
</div>
31-
<div class="cell border-box-sizing code_cell rendered">
32-
<div class="input">
33-
<div class="prompt input_prompt">In&nbsp;[1]:</div>
34-
<div class="inner_cell">
35-
<div class="input_area">
36-
<div class=" highlight hl-ipython2"><pre><span></span><span class="kn">import</span> <span class="nn">plotly</span>
37-
<span class="n">plotly</span><span class="o">.</span><span class="n">__version__</span>
38-
</pre></div>
39-
40-
</div>
41-
</div>
42-
</div>
43-
44-
<div class="output_wrapper">
45-
<div class="output">
46-
47-
48-
<div class="output_area">
49-
50-
<div class="prompt output_prompt">Out[1]:</div>
51-
52-
53-
54-
55-
<div class="output_text output_subarea output_execute_result">
56-
<pre>&#39;2.0.7&#39;</pre>
57-
</div>
58-
59-
</div>
26+
<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>
6027

6128
</div>
6229
</div>
63-
6430
</div>
6531
<div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt">
6632
</div>
6733
<div class="inner_cell">
6834
<div class="text_cell_render border-box-sizing rendered_html">
69-
<h4 id="3D-Surface-Subplots">3D Surface Subplots<a class="anchor-link" href="#3D-Surface-Subplots">&#194;&#182;</a></h4>
35+
<h4 id="3D-Surface-Subplots">3D Surface Subplots<a class="anchor-link" href="#3D-Surface-Subplots">&#182;</a></h4>
7036
</div>
7137
</div>
7238
</div>
7339
<div class="cell border-box-sizing code_cell rendered">
7440
<div class="input">
75-
<div class="prompt input_prompt">In&nbsp;[2]:</div>
41+
<div class="prompt input_prompt">In&nbsp;[1]:</div>
7642
<div class="inner_cell">
7743
<div class="input_area">
7844
<div class=" highlight hl-ipython2"><pre><span></span><span class="kn">import</span> <span class="nn">plotly.plotly</span> <span class="kn">as</span> <span class="nn">py</span>
@@ -144,6 +110,23 @@ <h4 id="3D-Surface-Subplots">3D Surface Subplots<a class="anchor-link" href="#3D
144110
<div class="prompt"></div>
145111

146112

113+
<div class="output_subarea output_stream output_stderr output_text">
114+
<pre>/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/plotly/graph_objs/_deprecations.py:477: DeprecationWarning:
115+
116+
plotly.graph_objs.Scene is deprecated.
117+
Please replace it with one of the following more specific types
118+
- plotly.graph_objs.Scene
119+
120+
121+
</pre>
122+
</div>
123+
</div>
124+
125+
<div class="output_area">
126+
127+
<div class="prompt"></div>
128+
129+
147130
<div class="output_subarea output_stream output_stdout output_text">
148131
<pre>This is the format of your plot grid:
149132
[ (1,1) scene1 ] [ (1,2) scene2 ]
@@ -155,12 +138,12 @@ <h4 id="3D-Surface-Subplots">3D Surface Subplots<a class="anchor-link" href="#3D
155138

156139
<div class="output_area">
157140

158-
<div class="prompt output_prompt">Out[2]:</div>
141+
<div class="prompt output_prompt">Out[1]:</div>
159142

160143

161144

162145
<div class="output_html rendered_html output_subarea output_execute_result">
163-
<iframe id="igraph" scrolling="no" style="border:none;" seamless="seamless" src="https://plot.ly/~PythonPlotBot/1821.embed" height="800px" width="800px"></iframe>
146+
<iframe id="igraph" scrolling="no" style="border:none;" seamless="seamless" src="https://plot.ly/~jordanpeterson/1047.embed" height="800px" width="800px"></iframe>
164147
</div>
165148

166149
</div>
@@ -173,7 +156,7 @@ <h4 id="3D-Surface-Subplots">3D Surface Subplots<a class="anchor-link" href="#3D
173156
</div>
174157
<div class="inner_cell">
175158
<div class="text_cell_render border-box-sizing rendered_html">
176-
<h4 id="Reference">Reference<a class="anchor-link" href="#Reference">&#194;&#182;</a></h4>
159+
<h4 id="Reference">Reference<a class="anchor-link" href="#Reference">&#182;</a></h4>
177160
</div>
178161
</div>
179162
</div>

_posts/python-version2/subplots/3d-subplot/3d-subplots.ipynb

Lines changed: 3 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,7 @@
99
"<br>You can set up Plotly to work in [online](https://plot.ly/python/getting-started/#initialization-for-online-plotting) or [offline](https://plot.ly/python/getting-started/#initialization-for-offline-plotting) mode, or in [jupyter notebooks](https://plot.ly/python/getting-started/#start-plotting-online).\n",
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!\n",
1111
"#### Version Check\n",
12-
"Plotly's python package is updated frequently. Run pip install plotly --upgrade to use the latest version."
13-
]
14-
},
15-
{
16-
"cell_type": "code",
17-
"execution_count": 1,
18-
"metadata": {},
19-
"outputs": [
20-
{
21-
"data": {
22-
"text/plain": [
23-
"'2.0.7'"
24-
]
25-
},
26-
"execution_count": 1,
27-
"metadata": {},
28-
"output_type": "execute_result"
29-
}
30-
],
31-
"source": [
32-
"import plotly \n",
33-
"plotly.__version__"
12+
"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."
3413
]
3514
},
3615
{
@@ -155,7 +134,7 @@
155134
},
156135
{
157136
"cell_type": "code",
158-
"execution_count": 2,
137+
"execution_count": 1,
159138
"metadata": {},
160139
"outputs": [
161140
{
@@ -181,20 +160,6 @@
181160
},
182161
"metadata": {},
183162
"output_type": "display_data"
184-
},
185-
{
186-
"name": "stderr",
187-
"output_type": "stream",
188-
"text": [
189-
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/nbconvert.py:13: ShimWarning:\n",
190-
"\n",
191-
"The `IPython.nbconvert` package has been deprecated since IPython 4.0. You should import from nbconvert instead.\n",
192-
"\n",
193-
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/publisher/publisher.py:53: UserWarning:\n",
194-
"\n",
195-
"Did you \"Save\" this notebook before running this command? Remember to save, always save.\n",
196-
"\n"
197-
]
198163
}
199164
],
200165
"source": [
@@ -244,7 +209,7 @@
244209
"name": "python",
245210
"nbconvert_exporter": "python",
246211
"pygments_lexer": "ipython2",
247-
"version": "2.7.12"
212+
"version": "2.7.15rc1"
248213
}
249214
},
250215
"nbformat": 4,

0 commit comments

Comments
 (0)