Update examples, fixing bugs found in review.

This commit is contained in:
Jonathan Frederic 2014-09-23 14:21:47 -07:00
parent f81d88aebf
commit 4685de14b7
7 changed files with 14 additions and 19 deletions

View File

@ -1,6 +1,5 @@
{
"metadata": {
"celltoolbar": "Slideshow",
"kernelspec": {
"codemirror_mode": {
"name": "python",
@ -11,7 +10,7 @@
"name": "python2"
},
"name": "",
"signature": "sha256:ebbb9b368e8b07ec14fd5ee494586e605be36631657f2a9d9a6475ead41a3e04"
"signature": "sha256:608e0df06fe91ef1c013fd236dda33f7ae11019453f72ae446e8ce15bce82eb2"
},
"nbformat": 3,
"nbformat_minor": 0,

View File

@ -10,7 +10,7 @@
"name": "python2"
},
"name": "",
"signature": "sha256:cbc67230b7f7d3d8c7ab3a3c5910aaa3e0caf736d0d963892cb2139683caf5fb"
"signature": "sha256:8e469f292b096d750dc8eeb71caa8c08b26bc722708314a26a7684c380ccd20f"
},
"nbformat": 3,
"nbformat_minor": 0,
@ -62,7 +62,7 @@
"- [Widget Basics](Widget Basics.ipynb) \n",
"- [Widget Events](Widget Events.ipynb) \n",
"- [Widget Placement](Widget Placement.ipynb) \n",
"- [Widget Styles](Widget Styles.ipynb) \n",
"- [Widget Styling](Widget Styling.ipynb) \n",
"- [Custom Widget](Custom Widget - Hello World.ipynb)"
]
},

View File

@ -10,7 +10,7 @@
"name": "python2"
},
"name": "",
"signature": "sha256:044aa64f06487b5a08eb26102a46538bfb4e00d37a4cc14edcdf54986a9ef68e"
"signature": "sha256:3dfbc0dcb1fefc9ef028022760916b0300e14f71bf8e27589e61800841d5839c"
},
"nbformat": 3,
"nbformat_minor": 0,
@ -142,14 +142,14 @@
"output_box = widgets.Textarea()\n",
"output_box.height = '400px'\n",
"output_box.font_family = 'monospace'\n",
"output_box.fore_color = '#AAAAAA'\n",
"output_box.back_color = 'black'\n",
"output_box.color = '#AAAAAA'\n",
"output_box.background_color = 'black'\n",
"output_box.width = '800px'\n",
"\n",
"input_box = widgets.Text()\n",
"input_box.font_family = 'monospace'\n",
"input_box.fore_color = '#AAAAAA'\n",
"input_box.back_color = 'black'\n",
"input_box.color = '#AAAAAA'\n",
"input_box.background_color = 'black'\n",
"input_box.width = '800px'\n",
"\n",
"console_container.children = [output_box, input_box]"

View File

@ -1,6 +1,5 @@
{
"metadata": {
"celltoolbar": "Slideshow",
"kernelspec": {
"codemirror_mode": {
"name": "python",
@ -11,7 +10,7 @@
"name": "python2"
},
"name": "",
"signature": "sha256:942aa1b77fbab2ba0fa5e52a6e30fe1231a07e5f2a9ef9fc495e106a08e65e39"
"signature": "sha256:c8af7f5d30b29ee52fe6a79cf0d573c9c2d5b2f522b04731249e3208671741d3"
},
"nbformat": 3,
"nbformat_minor": 0,

View File

@ -6,7 +6,6 @@
null
]
],
"celltoolbar": "Slideshow",
"kernelspec": {
"codemirror_mode": {
"name": "python",
@ -17,7 +16,7 @@
"name": "python2"
},
"name": "",
"signature": "sha256:0e46490eebb11503b7a7411065535d6fbc5ebcf61a519f0b030281f303086bdc"
"signature": "sha256:05a3e92089b37f68e3134587ffef6ef73830e5f8b3c515ba24640d7c803820c3"
},
"nbformat": 3,
"nbformat_minor": 0,

View File

@ -1,6 +1,5 @@
{
"metadata": {
"celltoolbar": "Slideshow",
"kernelspec": {
"codemirror_mode": {
"name": "python",
@ -11,7 +10,7 @@
"name": "python2"
},
"name": "",
"signature": "sha256:869807fa658843bb4742bab3bab7ce4d164a0e3285e3bf840ad76ede2e252b79"
"signature": "sha256:83b39d018a7a6ae0a324b9f3d38debafbfb2ed0a114e4bbd357fb318f8f23438"
},
"nbformat": 3,
"nbformat_minor": 0,

View File

@ -6,7 +6,6 @@
null
]
],
"celltoolbar": "Slideshow",
"kernelspec": {
"codemirror_mode": {
"name": "python",
@ -17,7 +16,7 @@
"name": "python2"
},
"name": "",
"signature": "sha256:f6e8d46c3edeaf2371bf508730c093f8d1005cc9be13072aabf71dc3f49b2c3b"
"signature": "sha256:8bb091be85fd5e7f76082b1b4b98cddec92a856334935ac2c702fe5ec03f6eff"
},
"nbformat": 3,
"nbformat_minor": 0,
@ -108,8 +107,8 @@
" description='Hello World!',\n",
" width=100, # Integers are interpreted as pixel measurements.\n",
" height='2em', # em is valid HTML unit of measurement.\n",
" fore_color='lime', # Colors can be set by name,\n",
" back_color='#0022FF', # and also by color code.\n",
" color='lime', # Colors can be set by name,\n",
" background_color='#0022FF', # and also by color code.\n",
" border_color='red')\n",
"display(button)"
],