This is something I built a little while ago. It's a proof-of-concept and inspired by what I was doing in my day job.
To play with the demo spreadsheet you'll need to clone the repo and run the demo script, ie:
git clone git@github.com:bsdz/calcengine.git
cd calcengine
python3 -mvenv --prompt calceng .venv
. ./.venv/bin/activate
poetry install -E demo
python demo/spreadsheet/main.py
There's an inline gif showing the spreadsheet in use.Hope it's interesting :)