Skip to content

Commit 7f02e3d

Browse files
committed
Upgraded Recipe 1.2 to IPython 4 and fixed dataset URL.
1 parent 1fda816 commit 7f02e3d

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

notebooks/chapter01_basic/02_pandas.ipynb

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
},
5858
"outputs": [],
5959
"source": [
60-
"url = \"http://donnees.ville.montreal.qc.ca/storage/f/2014-01-20T20%3A48%3A50.296Z/2013.csv\""
60+
"url = \"https://github.com/ipython-books/cookbook-data/raw/master/bikes.csv\""
6161
]
6262
},
6363
{
@@ -256,7 +256,8 @@
256256
},
257257
"outputs": [],
258258
"source": [
259-
"from IPython.html.widgets import interact\n",
259+
"from ipywidgets import interact\n",
260+
"#from IPython.html.widgets import interact # IPython < 4.x\n",
260261
"@interact\n",
261262
"def plot(n=(1, 30)):\n",
262263
" plt.figure(figsize=(8,4));\n",
@@ -280,6 +281,18 @@
280281
"display_name": "Python 3",
281282
"language": "python",
282283
"name": "python3"
284+
},
285+
"language_info": {
286+
"codemirror_mode": {
287+
"name": "ipython",
288+
"version": 3
289+
},
290+
"file_extension": ".py",
291+
"mimetype": "text/x-python",
292+
"name": "python",
293+
"nbconvert_exporter": "python",
294+
"pygments_lexer": "ipython3",
295+
"version": "3.5.0"
283296
}
284297
},
285298
"nbformat": 4,

0 commit comments

Comments
 (0)