Skip to content

Commit

Permalink
Update version of notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
jiffyclub committed Jul 8, 2018
1 parent 8d6a8f2 commit ef03544
Show file tree
Hide file tree
Showing 3 changed files with 145 additions and 117 deletions.
66 changes: 38 additions & 28 deletions Building Blocks.ipynb
@@ -1,31 +1,41 @@
{
"metadata": {
"name": "Building Blocks"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"After going through this set of exercises you will know how to read text files with Python, do some common operations on strings, and encapsulate code for reuse in functions."
]
},
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"After going through this set of exercises you will know how to read text files with Python, do some common operations on strings, and encapsulate code for reuse in functions."
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"from ipythonblocks import BlockGrid"
],
"language": "python",
"metadata": {},
"outputs": []
}
],
"metadata": {}
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"from ipythonblocks import BlockGrid"
]
}
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.5"
}
},
"nbformat": 4,
"nbformat_minor": 1
}
124 changes: 66 additions & 58 deletions Colors.ipynb
@@ -1,61 +1,69 @@
{
"metadata": {
"name": "Colors"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Understanding RGB Colors"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The goal in this notebook is to help you understand how to manipulate [RGB color values](http://en.wikipedia.org/wiki/RGB_color_model) to make a desired color."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"from ipythonblocks import show_color, embed_colorpicker, colors"
]
},
{
"cells": [
{
"cell_type": "heading",
"level": 1,
"metadata": {},
"source": [
"Understanding RGB Colors"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The goal in this notebook is to help you understand how to manipulate [RGB color values](http://en.wikipedia.org/wiki/RGB_color_model) to make a desired color."
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"from ipythonblocks import show_color, embed_colorpicker, colors"
],
"language": "python",
"metadata": {},
"outputs": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**Exercise:** Use the `show_color` function to make approximately the following colors:\n",
"\n",
"<ul>\n",
" <li style=\"background: rgb(0, 0, 150);\"></li>\n",
" <li style=\"background: rgb(250, 100, 50);\"></li>\n",
" <li style=\"background: rgb(200, 0, 150);\"></li>\n",
" <li>Your favorite color.</li>\n",
"</ul>"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [],
"language": "python",
"metadata": {},
"outputs": []
}
],
"metadata": {}
"cell_type": "markdown",
"metadata": {},
"source": [
"**Exercise:** Use the `show_color` function to make approximately the following colors:\n",
"\n",
"<ul>\n",
" <li style=\"background: rgb(0, 0, 150);\"></li>\n",
" <li style=\"background: rgb(250, 100, 50);\"></li>\n",
" <li style=\"background: rgb(200, 0, 150);\"></li>\n",
" <li>Your favorite color.</li>\n",
"</ul>"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.5"
}
]
}
},
"nbformat": 4,
"nbformat_minor": 1
}
72 changes: 41 additions & 31 deletions Playing with Blocks.ipynb
@@ -1,34 +1,44 @@
{
"metadata": {
"name": "Playing with Blocks"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"After working through the exercises in this notebook you should be familiar with Python variables, indexing, [for loops][for], and [if statements][if].\n",
"\n",
"[for]: http://docs.python.org/2/reference/compound_stmts.html#the-for-statement\n",
"[if]: http://docs.python.org/2/reference/compound_stmts.html#the-if-statement"
]
},
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"After working through the exercises in this notebook you should be familiar with Python variables, indexing, [for loops][for], and [if statements][if].\n",
"\n",
"[for]: http://docs.python.org/2/reference/compound_stmts.html#the-for-statement\n",
"[if]: http://docs.python.org/2/reference/compound_stmts.html#the-if-statement"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"from ipythonblocks import BlockGrid, colors"
],
"language": "python",
"metadata": {},
"outputs": []
}
],
"metadata": {}
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"from ipythonblocks import BlockGrid, colors"
]
}
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.5"
}
},
"nbformat": 4,
"nbformat_minor": 1
}

0 comments on commit ef03544

Please sign in to comment.