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.
Metadata
Release files for calc-note 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| calc_note-0.3.2.tar.gz | 2.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| calc_note-0.3.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.1 kB
Release files / calc_note-0.3.2.tar.gz
| Download URL | calc_note-0.3.2.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
612767276619774e95ed7d41a293a556e7b8dd69f7e97d22bfa750f990842fbb
|
|
BLAKE2b-256 checksum How to use checksums |
40dd79a129925e02499bcce9bf421ee0825e7c1b132ce28b5e5df9612b28318c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.8 Windows/11
|
Release files / calc_note-0.3.2-py3-none-any.whl
| Download URL | calc_note-0.3.2-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
859f4a2cf1d9aad0105dd5356d869801d01b1ea01f65115a9962dcbb3e65221b
|
|
BLAKE2b-256 checksum How to use checksums |
c652557035791e8db7c05ae8ebadb9ba1b20b1a126d33b6633d066a926c34ce1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.8 Windows/11
|