Learning Colors with show_color and embed_colorpicker

A prerequisite to playing with ipythonblocks is understanding how RGB colors work. To make it easy for students to experiment with different combinations of RGB ipythonblocks includes a show_color function that just shows a big stripe of a given color.

In [1]:
from ipythonblocks import show_color, embed_colorpicker
In [2]:
show_color(12, 123, 234)

If students are expected to have an internet connection the embed_colorpicker function can be used to embed the website ColorPicker.com in the Notebook.

In [3]:
embed_colorpicker()