Skip to main content

Practice Python with colored grids in the IPython Notebook

Project description

ipythonblocks is a teaching tool for use with the IPython Notebook. It provides a BlockGrid object whose representation is an HTML table. Individual table cells are represented by Block objects that have .red, .green, and .blue attributes by which the color of that cell can be specified.

ipythonblocks allows students to experiment with Python flow control concepts and immediately see the effects of their code represented in a colorful, attractive way. BlockGrid objects can be indexed and sliced like 2D NumPy arrays making them good practice for learning how to access arrays.

See these demo notebooks for more on using ipythonblocks:

Install

ipythonblocks can be installed with pip:

pip install ipythonblocks

or easy_install:

easy_install ipythonblocks

However, the package is contained in a single .py file and if you prefer you can just grab ipythonblocks.py and copy it to wherever you want to use it (useful for packaging with other teaching materials).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

ipythonblocks-1.2.zip (4.2 kB view details)

Uploaded Source

ipythonblocks-1.2.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file ipythonblocks-1.2.zip.

File metadata

  • Download URL: ipythonblocks-1.2.zip
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ipythonblocks-1.2.zip
Algorithm Hash digest
SHA256 a491d10abea846673f03ae28fdf4f2295ac62e8fe1c72cd89762ce0f88078196
MD5 884c4ff7c9346ff15675126c6cae1254
BLAKE2b-256 58e2170db08aec64a49aae7004dd7f3064d023c236cf76496e2580a9e6d7adf7

See more details on using hashes here.

File details

Details for the file ipythonblocks-1.2.tar.gz.

File metadata

  • Download URL: ipythonblocks-1.2.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ipythonblocks-1.2.tar.gz
Algorithm Hash digest
SHA256 cf8e8b037f8d1f48f6871dbe028d74e613e0aa7b4dab3aa10f93dcc117899fe3
MD5 2527bf8e523dbc47f1bc6f909562c574
BLAKE2b-256 3e77bfccf0bd09e406786a11b8caa98578e5a127af052ed3c1b29eeae15f4b8d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page