Skip to content

Commit 8504ec4

Browse files
committed
Add missing plotly imports.
1 parent 413e04d commit 8504ec4

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

Diff for: Demo_Visualisation.ipynb

+16-3
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,18 @@
122122
"hv.extension('bokeh', 'matplotlib')"
123123
]
124124
},
125+
{
126+
"cell_type": "code",
127+
"execution_count": null,
128+
"metadata": {},
129+
"outputs": [],
130+
"source": [
131+
"from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot\n",
132+
"import plotly.graph_objs as go\n",
133+
"import plotly\n",
134+
"init_notebook_mode(connected=True)"
135+
]
136+
},
125137
{
126138
"cell_type": "code",
127139
"execution_count": null,
@@ -217,7 +229,8 @@
217229
"outputs": [],
218230
"source": [
219231
"# For this demo, I didn't bother with dates.\n",
220-
"# Instead, work with day-from-start, setting the first day to 1 (this is equiv to day-of-month for our dataset)\n",
232+
"# Instead, work with day-from-start, setting the first day to 1\n",
233+
"# This is equivalent to day-of-month for our dataset\n",
221234
"data['day'] = (data['trmt_date'] - data['trmt_date'].min()).dt.days + 1"
222235
]
223236
},
@@ -793,7 +806,7 @@
793806
"anaconda-cloud": {},
794807
"hide_input": false,
795808
"kernelspec": {
796-
"display_name": "Python [default]",
809+
"display_name": "Python 3",
797810
"language": "python",
798811
"name": "python3"
799812
},
@@ -807,7 +820,7 @@
807820
"name": "python",
808821
"nbconvert_exporter": "python",
809822
"pygments_lexer": "ipython3",
810-
"version": "3.6.3"
823+
"version": "3.6.0"
811824
},
812825
"toc": {
813826
"colors": {

0 commit comments

Comments
 (0)