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 the demo notebook 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.1.zip (4.2 kB view details)

Uploaded Source

ipythonblocks-1.1.tar.gz (3.4 kB view details)

Uploaded Source

File details

Details for the file ipythonblocks-1.1.zip.

File metadata

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

File hashes

Hashes for ipythonblocks-1.1.zip
Algorithm Hash digest
SHA256 b6a884f35330986b8b2595b0d57d66847682f897fccfc9e2a98e4d18f8722b74
MD5 82f6438c56d8684ed308f5cfea834e38
BLAKE2b-256 7138611bfd5bf063a2521cc9529e150cdcc2c0ae71b1c84c76a54f5c0b856127

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for ipythonblocks-1.1.tar.gz
Algorithm Hash digest
SHA256 bac6090250e1972c7e99a31c1dbd33cd07e9bc6e6becbdae106e3d1c2d1c9ac9
MD5 ae2f2b210e2113829953fa5dbbe9df7d
BLAKE2b-256 7b14290ae5597699306f8357e2f8946b2e84b8bfc0830fe3e1676e1c25b50311

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