Skip to main content

Collection of utilities to ease the production of professional calculation notes using Python and Jupyter.

Project description

Calculation Note

calc_note is a collection of utilities to ease the production of professional calculation notes using Python and Jupyter.

Installation

Using pip:

pip install calc_note

Usage

Import calc_note with:

from calc_note.display import *

See tests/tests_calc_note.ipynb for usage examples.

show(pd.DataFrame)

Calling show() in a notebook on a DataFrame (instead of simply calling the DataFrame) prints a table that will remain pretty after the notebook's conversion to PDF.

md(str)

calc_notes imports the following:

from IPython.display import Markdown as md

The md(str) function can thus be used to generate Markdown content from a Python cell. The latter is useful to embed variables in Markdown tables, for example.

%%render Cell Magic

The %%render cell magic from handcalcs is include to render code blocks as LaTeX.

Contributing

Contributions are welcome. The package is managed with poetry starting from v0.3.0. A few useful commands are defined in Makefile.

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

calc_note-0.3.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

calc_note-0.3.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file calc_note-0.3.0.tar.gz.

File metadata

  • Download URL: calc_note-0.3.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.4 Windows/11

File hashes

Hashes for calc_note-0.3.0.tar.gz
Algorithm Hash digest
SHA256 be4921418abcf9f2ea71c2158e0c5f47ab3d5c3c65e9a17d965267a998922f12
MD5 fdd02ea456e679dae2bf42f6aa33e2d8
BLAKE2b-256 688bae59a350585f2dca1a68f1648665987b945e19b478c8d35ddf2059ad7900

See more details on using hashes here.

File details

Details for the file calc_note-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: calc_note-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.4 Windows/11

File hashes

Hashes for calc_note-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ad1574a5ad436bd1422e0303c25bba8f126a1273fb01838a3e22a4296ea85bb9
MD5 b058af15104a6bd9ef7d4956a9f25b80
BLAKE2b-256 e78e7d631842876b4d8d42f9ccb20618abfa79eb52a0cab13ff68d5494290b4f

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