Skip to content

Commit 3ee527f

Browse files
authored
modified spacing to conform to Black (#49)
1 parent a057f95 commit 3ee527f

File tree

1 file changed

+18
-11
lines changed

1 file changed

+18
-11
lines changed

notebooks/01_introduction.ipynb

+18-11
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,21 @@
7272
"fruits = [\"Apples\", \"Pears\", \"Nectarines\", \"Plums\", \"Grapes\", \"Strawberries\"]\n",
7373
"years = [\"2015\", \"2016\", \"2017\"]\n",
7474
"\n",
75-
"data = {\"fruits\": fruits, \"2015\": [2, 1, 4, 3, 2, 4], \"2016\": [5, 3, 4, 2, 4, 6], \"2017\": [3, 2, 4, 4, 5, 3]}\n",
76-
"\n",
77-
"p = figure(x_range=fruits, height=250, title=\"Fruit Counts by Year\", toolbar_location=None, tools=\"hover\", tooltips=\"$name @fruits: @$name\")\n",
75+
"data = {\n",
76+
" \"fruits\": fruits,\n",
77+
" \"2015\": [2, 1, 4, 3, 2, 4],\n",
78+
" \"2016\": [5, 3, 4, 2, 4, 6],\n",
79+
" \"2017\": [3, 2, 4, 4, 5, 3]\n",
80+
"}\n",
81+
"\n",
82+
"p = figure(\n",
83+
" x_range=fruits,\n",
84+
" height=250,\n",
85+
" title=\"Fruit Counts by Year\",\n",
86+
" toolbar_location=None,\n",
87+
" tools=\"hover\",\n",
88+
" tooltips=\"$name @fruits: @$name\"\n",
89+
")\n",
7890
"\n",
7991
"p.vbar_stack(years, x=\"fruits\", width=0.9, color=HighContrast3, source=data, legend_label=years)\n",
8092
"\n",
@@ -287,9 +299,9 @@
287299
],
288300
"metadata": {
289301
"kernelspec": {
290-
"display_name": "scipy-scipy-interactive-dataviz-bokeh",
302+
"display_name": "bk-tutorial",
291303
"language": "python",
292-
"name": "conda-env-scipy-scipy-interactive-dataviz-bokeh-py"
304+
"name": "python3"
293305
},
294306
"language_info": {
295307
"codemirror_mode": {
@@ -301,12 +313,7 @@
301313
"name": "python",
302314
"nbconvert_exporter": "python",
303315
"pygments_lexer": "ipython3",
304-
"version": "3.12.4"
305-
},
306-
"vscode": {
307-
"interpreter": {
308-
"hash": "0494a81e5f69860dcb844ce8e12eb9c88a7e813ddbfb0fbade72137f5ce45437"
309-
}
316+
"version": "3.13.1"
310317
}
311318
},
312319
"nbformat": 4,

0 commit comments

Comments
 (0)