Skip to content

Commit 397236d

Browse files
authored
Merge pull request #106 from mbektasbbg/layout_updates_2
Layout updates 2
2 parents 536504e + b10d4ee commit 397236d

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

notebooks/06.01-widget-layout-and-styling.ipynb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@
248248
"cell_type": "markdown",
249249
"metadata": {},
250250
"source": [
251-
"There is a [list of all style keys](Table%20of%20widget%20keys%20and%20style%20keys.ipynb#Style-keys)."
251+
"There is a [list of all style keys](Table_of_widget_keys_and_style_keys.ipynb#Style-keys)."
252252
]
253253
},
254254
{
@@ -786,8 +786,8 @@
786786
"source": [
787787
"**To do:**\n",
788788
"\n",
789-
"+ Change the `min_width` for *one* of the `items`, say the first one. Does it affect only the first one, or all of them? Why?\n",
790-
"+ Change the `height` of *only* the first button. *Hint:* It needs its own `Layout`."
789+
"1. Change the `min_width` for *one* of the `items`, say the first one. Does it affect only the first one, or all of them? Why?\n",
790+
"2. Change the `height` of *only* the first button. *Hint:* It needs its own `Layout`."
791791
]
792792
},
793793
{
@@ -1427,18 +1427,18 @@
14271427
" sc_x = scales_x[j]\n",
14281428
" sc_y = scales_y[i]\n",
14291429
"\n",
1430-
" scatt = bq.Scatter(x=data[:, j], y=data[:, i], scales={'x': sc_x, 'y': sc_y}, default_size=1)\n",
1430+
" scatt = bq.Scatter(x=data[:, j], y=data[:, i], scales={'x': sc_x, 'y': sc_y})\n",
14311431
"\n",
14321432
" gs[i, j] = bq.Figure(marks=[scatt], layout=Layout(width='auto', height='auto'),\n",
1433-
" fig_margin=dict(top=0, bottom=0, left=0, right=0))\n",
1433+
" fig_margin=dict(top=5, bottom=5, left=5, right=5), background_style={'fill':'#f5f5ff'})\n",
14341434
" else:\n",
14351435
" sc_x = scales_x[j]\n",
14361436
" sc_y = bq.LinearScale()\n",
14371437
" \n",
14381438
" hist = bq.Hist(sample=data[:,i], scales={'sample': sc_x, 'count': sc_y})\n",
14391439
" \n",
14401440
" gs[i, j] = bq.Figure(marks=[hist], layout=Layout(width='auto', height='auto'),\n",
1441-
" fig_margin=dict(top=0, bottom=0, left=0, right=0))\n",
1441+
" fig_margin=dict(top=5, bottom=5, left=5, right=5), background_style={'fill':'#f5f5ff'})\n",
14421442
"gs"
14431443
]
14441444
},

notebooks/reference_guides/guide-flex-box.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@
281281
"source": [
282282
"## A widget for exploring layout options\n",
283283
"\n",
284-
"The widgets below was written by ipywidgets user [Doug Redden (@DougRzz)](https://github.com/DougRzz). If you want to look through the source code to see how it works, take a look at this [notebook he contributed](cssJupyterWidgetStyling-UI.ipynb).\n",
284+
"The widgets below was written by ipywidgets user [Doug Redden (@DougRzz)](https://github.com/DougRzz).\n",
285285
"\n",
286286
"Use the dropdowns and sliders in the widget to change the layout of the box containing the five colored buttons. Many of the CSS layout optoins described above are available, and the Python code to generate a `Layout` object reflecting the settings is in a `TextArea` in the widget."
287287
]
@@ -313,9 +313,9 @@
313313
"name": "python",
314314
"nbconvert_exporter": "python",
315315
"pygments_lexer": "ipython3",
316-
"version": "3.7.3"
316+
"version": "3.8.3"
317317
}
318318
},
319319
"nbformat": 4,
320-
"nbformat_minor": 2
320+
"nbformat_minor": 4
321321
}

0 commit comments

Comments
 (0)