Skip to content

Commit 1f98932

Browse files
authored
Merge pull request #1268 from jimprince/source-design-merge
Fixed typo preventing execution of example code
2 parents c6265a2 + fa7522f commit 1f98932

File tree

1 file changed

+19
-35
lines changed

1 file changed

+19
-35
lines changed

_posts/python/user_guide_python/new_py_guide.ipynb

Lines changed: 19 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,21 @@
2525
},
2626
{
2727
"cell_type": "code",
28-
"execution_count": 79,
28+
"execution_count": 3,
2929
"metadata": {
3030
"collapsed": false
3131
},
3232
"outputs": [
3333
{
3434
"data": {
3535
"text/html": [
36-
"<iframe id=\"igraph\" scrolling=\"no\" style=\"border:none;\" seamless=\"seamless\" src=\"https://plot.ly/~kevintest/356.embed\" height=\"525px\" width=\"100%\"></iframe>"
36+
"<iframe id=\"igraph\" scrolling=\"no\" style=\"border:none;\" seamless=\"seamless\" src=\"https://plot.ly/~bradprin/22.embed\" height=\"525px\" width=\"100%\"></iframe>"
3737
],
3838
"text/plain": [
3939
"<plotly.tools.PlotlyDisplay object>"
4040
]
4141
},
42-
"execution_count": 79,
42+
"execution_count": 3,
4343
"metadata": {},
4444
"output_type": "execute_result"
4545
}
@@ -48,7 +48,7 @@
4848
"import plotly.plotly as py\n",
4949
"import plotly.graph_objs as go\n",
5050
"\n",
51-
"trace1 = go.Scatter(x=[1,2,3], y=[4,5,6], marker={'color': 'red', 'symbol': 104, 'size': \"10\"}, \n",
51+
"trace1 = go.Scatter(x=[1,2,3], y=[4,5,6], marker={'color': 'red', 'symbol': 104, 'size': 10}, \n",
5252
" mode=\"markers+lines\", text=[\"one\",\"two\",\"three\"], name='1st Trace')\n",
5353
" \n",
5454
"data=go.Data([trace1])\n",
@@ -221,9 +221,7 @@
221221
},
222222
{
223223
"cell_type": "markdown",
224-
"metadata": {
225-
"collapsed": true
226-
},
224+
"metadata": {},
227225
"source": [
228226
"#### The Source of Plotly's Power\n",
229227
"\n",
@@ -531,9 +529,7 @@
531529
},
532530
{
533531
"cell_type": "markdown",
534-
"metadata": {
535-
"collapsed": true
536-
},
532+
"metadata": {},
537533
"source": [
538534
"##### Shapes\n",
539535
"\n",
@@ -672,9 +668,7 @@
672668
},
673669
{
674670
"cell_type": "markdown",
675-
"metadata": {
676-
"collapsed": true
677-
},
671+
"metadata": {},
678672
"source": [
679673
"The first neat option about using graph_objs is that you can call help on them."
680674
]
@@ -974,9 +968,7 @@
974968
},
975969
{
976970
"cell_type": "markdown",
977-
"metadata": {
978-
"collapsed": true
979-
},
971+
"metadata": {},
980972
"source": []
981973
},
982974
{
@@ -1350,18 +1342,14 @@
13501342
},
13511343
{
13521344
"cell_type": "markdown",
1353-
"metadata": {
1354-
"collapsed": true
1355-
},
1345+
"metadata": {},
13561346
"source": [
13571347
"### Looking at Examples"
13581348
]
13591349
},
13601350
{
13611351
"cell_type": "markdown",
1362-
"metadata": {
1363-
"collapsed": true
1364-
},
1352+
"metadata": {},
13651353
"source": [
13661354
"Examples are one of the best ways to get started and get your feet wet. Through the examples you can get a good idea of what a certain type of plot is used for, and what can be possible with it. \n",
13671355
"\n",
@@ -1651,18 +1639,14 @@
16511639
},
16521640
{
16531641
"cell_type": "markdown",
1654-
"metadata": {
1655-
"collapsed": true
1656-
},
1642+
"metadata": {},
16571643
"source": [
16581644
"### Using the Reference Page"
16591645
]
16601646
},
16611647
{
16621648
"cell_type": "markdown",
1663-
"metadata": {
1664-
"collapsed": true
1665-
},
1649+
"metadata": {},
16661650
"source": [
16671651
"At this point you may have a good idea of how you want to visualize your data, and which type of plot you would like to use. You've taken a look at some examples of this plot type, but there are still some details that you would like to add or change. Now is the time for you to check out the **[Reference Page!](https://plot.ly/python/reference/)** The reference page details all the parameters that can be set for every type of plot that is possible in Plotly (ie: all the trace objects). In addition it also provides details on the possible parameters that are available to change in the `Layout` object as well.\n",
16681652
"\n",
@@ -1729,7 +1713,7 @@
17291713
"name": "stdout",
17301714
"output_type": "stream",
17311715
"text": [
1732-
"Requirement already up-to-date: publisher in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages\r\n"
1716+
"Requirement already up-to-date: publisher in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages\n"
17331717
]
17341718
}
17351719
],
@@ -1761,23 +1745,23 @@
17611745
],
17621746
"metadata": {
17631747
"kernelspec": {
1764-
"display_name": "Python 2",
1748+
"display_name": "Python 3",
17651749
"language": "python",
1766-
"name": "python2"
1750+
"name": "python3"
17671751
},
17681752
"language_info": {
17691753
"codemirror_mode": {
17701754
"name": "ipython",
1771-
"version": 2
1755+
"version": 3
17721756
},
17731757
"file_extension": ".py",
17741758
"mimetype": "text/x-python",
17751759
"name": "python",
17761760
"nbconvert_exporter": "python",
1777-
"pygments_lexer": "ipython2",
1778-
"version": "2.7.9"
1761+
"pygments_lexer": "ipython3",
1762+
"version": "3.7.2"
17791763
}
17801764
},
17811765
"nbformat": 4,
1782-
"nbformat_minor": 0
1766+
"nbformat_minor": 2
17831767
}

0 commit comments

Comments
 (0)