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.3.zip (5.3 kB view details)

Uploaded Source

ipythonblocks-1.3.tar.gz (4.6 kB view details)

Uploaded Source

File details

Details for the file ipythonblocks-1.3.zip.

File metadata

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

File hashes

Hashes for ipythonblocks-1.3.zip
Algorithm Hash digest
SHA256 4522ae676cfdbb77790401073636e956ac2665d423c6792c112a73b8d61d14cb
MD5 9d41f19bc3caba3c26bc3ea28db6f60f
BLAKE2b-256 e4733d2cfd9b7c0f9fd157c59d901d1d906c7df3142dc1b3ddf12d7eab2c48c1

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for ipythonblocks-1.3.tar.gz
Algorithm Hash digest
SHA256 ce5d579b38839ecc9ccb102fd39c0999fa5465914e489b551875ddfe791d5040
MD5 7b3b57aeb5b8af36a57c217015e4f1e7
BLAKE2b-256 d3e1fb292f8e3e2b1a2f5dd75c2e91215022b1e47a23538403780a282165931a

See more details on using hashes here.

Supported by

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