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.2.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for calc_note-0.3.2.tar.gz
Algorithm Hash digest
SHA256 612767276619774e95ed7d41a293a556e7b8dd69f7e97d22bfa750f990842fbb
MD5 11401a1e538877d5734f4b4444107a00
BLAKE2b-256 40dd79a129925e02499bcce9bf421ee0825e7c1b132ce28b5e5df9612b28318c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: calc_note-0.3.2-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.8 Windows/11

File hashes

Hashes for calc_note-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 859f4a2cf1d9aad0105dd5356d869801d01b1ea01f65115a9962dcbb3e65221b
MD5 25a3f3bfd22f1714b27bdf1eb07c3c4a
BLAKE2b-256 c652557035791e8db7c05ae8ebadb9ba1b20b1a126d33b6633d066a926c34ce1

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