Skip to main content

A tool for quasi-interactive math sheets

Project description

hashequal

a Python tool for quasi-interactive math sheets, aiming to provide Mathcad-like experience
on execution it modifies the calling script annotating the results of the operations marked with #=

example

before running

#! /usr/bin/env python

import hashequal

a = 1 + 1 #=
b = a * 2 #=  # comment

after running

#! /usr/bin/env python

import hashequal  # run 2018-11-06 18:59:54 UTC

a = 1 + 1 #= 2
b = a * 2 #= 4  # comment

instructions

  • import hashequal at the beginning of the file, eventually just below the interpreter directive
  • mark every operation whose result is to be annotated with an #= comment
  • if there need to be further comments on an #= line, use another following #

known issues

  • does not handle implicit line continuations

Project details


Download files

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

Source Distribution

hashequal-1.0.2.tar.gz (7.9 kB view hashes)

Uploaded Source

Built Distribution

hashequal-1.0.2-py3-none-any.whl (8.3 kB view hashes)

Uploaded Python 3

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