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

Skip to content

Commit ccd4004

Browse files
committed
change embedded plot
1 parent 616d317 commit ccd4004

File tree

2 files changed

+12
-30
lines changed

2 files changed

+12
-30
lines changed

_posts/user_guide_python/2015-06-30-bar_chart_stream.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ <h2 id="Streaming-Bar-Chart-Demo">Streaming Bar Chart Demo<a class="anchor-link"
2222
</div>
2323
<div class="cell border-box-sizing code_cell rendered">
2424
<div class="input">
25-
<div class="prompt input_prompt">In&nbsp;[2]:</div>
25+
<div class="prompt input_prompt">In&nbsp;[1]:</div>
2626
<div class="inner_cell">
2727
<div class="input_area">
2828
<div class=" highlight hl-ipython2"><pre><span class="kn">import</span> <span class="nn">plotly.plotly</span> <span class="kn">as</span> <span class="nn">py</span>
@@ -50,7 +50,7 @@ <h2 id="Streaming-Bar-Chart-Demo">Streaming Bar Chart Demo<a class="anchor-link"
5050
</div>
5151
<div class="cell border-box-sizing code_cell rendered">
5252
<div class="input">
53-
<div class="prompt input_prompt">In&nbsp;[11]:</div>
53+
<div class="prompt input_prompt">In&nbsp;[2]:</div>
5454
<div class="inner_cell">
5555
<div class="input_area">
5656
<div class=" highlight hl-ipython2"><pre><span class="c">#A simple bar chart object is generated</span>
@@ -121,10 +121,10 @@ <h2 id="Streaming-Bar-Chart-Demo">Streaming Bar Chart Demo<a class="anchor-link"
121121
</div>
122122
<div class="cell border-box-sizing code_cell rendered">
123123
<div class="input">
124-
<div class="prompt input_prompt">In&nbsp;[3]:</div>
124+
<div class="prompt input_prompt">In&nbsp;[6]:</div>
125125
<div class="inner_cell">
126126
<div class="input_area">
127-
<div class=" highlight hl-ipython2"><pre><span class="n">tls</span><span class="o">.</span><span class="n">embed</span><span class="p">(</span><span class="s">&#39;https://plot.ly/~streaming-demos/116/bar-chart-streaming/&#39;</span><span class="p">)</span>
127+
<div class=" highlight hl-ipython2"><pre><span class="n">tls</span><span class="o">.</span><span class="n">embed</span><span class="p">(</span><span class="s">&#39;https://plot.ly/~streaming-demos/116/bar-chart-streaming&#39;</span><span class="p">)</span>
128128
</pre></div>
129129

130130
</div>
@@ -135,7 +135,7 @@ <h2 id="Streaming-Bar-Chart-Demo">Streaming Bar Chart Demo<a class="anchor-link"
135135
<div class="output">
136136

137137

138-
<div class="output_area"><div class="prompt output_prompt">Out[3]:</div>
138+
<div class="output_area"><div class="prompt output_prompt">Out[6]:</div>
139139

140140
<div class="output_html rendered_html output_subarea output_execute_result">
141141
<iframe id="igraph" scrolling="no" style="border:none;" seamless="seamless" src="https://plot.ly/~streaming-demos/116.embed" height="525" width="100%"></iframe>

_posts/user_guide_python/bar_chart_stream.ipynb

Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
{
1111
"cell_type": "code",
12-
"execution_count": 2,
12+
"execution_count": 8,
1313
"metadata": {
1414
"collapsed": false
1515
},
@@ -26,7 +26,7 @@
2626
"\n",
2727
"stream_id = 'jkc6d90yfw' \n",
2828
"\n",
29-
"# We can generate a new stream id object\n",
29+
"# Let's generate a new stream id object\n",
3030
"stream = Stream(\n",
3131
" token=stream_id, \n",
3232
" maxpoints=80\n",
@@ -35,7 +35,7 @@
3535
},
3636
{
3737
"cell_type": "code",
38-
"execution_count": 11,
38+
"execution_count": 2,
3939
"metadata": {
4040
"collapsed": true
4141
},
@@ -98,7 +98,7 @@
9898
},
9999
{
100100
"cell_type": "code",
101-
"execution_count": 3,
101+
"execution_count": 6,
102102
"metadata": {
103103
"collapsed": false
104104
},
@@ -112,13 +112,13 @@
112112
"<plotly.tools.PlotlyDisplay object>"
113113
]
114114
},
115-
"execution_count": 3,
115+
"execution_count": 6,
116116
"metadata": {},
117117
"output_type": "execute_result"
118118
}
119119
],
120120
"source": [
121-
"tls.embed('https://plot.ly/~streaming-demos/116/bar-chart-streaming/')"
121+
"tls.embed('https://plot.ly/~streaming-demos/116/bar-chart-streaming')"
122122
]
123123
},
124124
{
@@ -142,7 +142,7 @@
142142
},
143143
{
144144
"cell_type": "code",
145-
"execution_count": 4,
145+
"execution_count": 10,
146146
"metadata": {
147147
"collapsed": false
148148
},
@@ -177,24 +177,6 @@
177177
"text": [
178178
"Requirement already up-to-date: publisher in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages\r\n"
179179
]
180-
},
181-
{
182-
"name": "stderr",
183-
"output_type": "stream",
184-
"text": [
185-
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/nbconvert.py:13: ShimWarning:\n",
186-
"\n",
187-
"The `IPython.nbconvert` package has been deprecated. You should import from nbconvert instead.\n",
188-
"\n",
189-
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/publisher/publisher.py:53: UserWarning:\n",
190-
"\n",
191-
"Did you \"Save\" this notebook before running this command? Remember to save, always save.\n",
192-
"\n",
193-
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/publisher/publisher.py:58: UserWarning:\n",
194-
"\n",
195-
"Your URL has more than 2 parts... are you sure?\n",
196-
"\n"
197-
]
198180
}
199181
],
200182
"source": [

0 commit comments

Comments
 (0)