TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: A simple lazy Python calculation engine, with spreadsheet demo

123 pointsby bsdzalmost 4 years ago

7 comments

bsdzalmost 4 years ago
This is something I built a little while ago. It&#x27;s a proof-of-concept and inspired by what I was doing in my day job.<p>To play with the demo spreadsheet you&#x27;ll need to clone the repo and run the demo script, ie:<p><pre><code> git clone git@github.com:bsdz&#x2F;calcengine.git cd calcengine python3 -mvenv --prompt calceng .venv . .&#x2F;.venv&#x2F;bin&#x2F;activate poetry install -E demo python demo&#x2F;spreadsheet&#x2F;main.py </code></pre> There&#x27;s an inline gif showing the spreadsheet in use.<p>Hope it&#x27;s interesting :)
评论 #27773122 未加载
评论 #27769566 未加载
评论 #27775271 未加载
yssrnjmalmost 4 years ago
This is really interesting because I was working recently on a way to have complete spreadsheets using only CSV files. The project is in my Github (<a href="https:&#x2F;&#x2F;github.com&#x2F;yassirnajmaoui&#x2F;runcsv" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;yassirnajmaoui&#x2F;runcsv</a> and <a href="https:&#x2F;&#x2F;github.com&#x2F;yassirnajmaoui&#x2F;runcsv-gui" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;yassirnajmaoui&#x2F;runcsv-gui</a>) The only (major) thing is that the cells are run in top-bottom left-right instead of running a graph like this repo suggests.
bradleybudaalmost 4 years ago
This is cool! Also gives me a great excuse to post one of my favorite papers, &quot;Build Systems à la Carte&quot;, about how make and Excel are solving the same problem in different ways: <a href="https:&#x2F;&#x2F;www.microsoft.com&#x2F;en-us&#x2F;research&#x2F;uploads&#x2F;prod&#x2F;2018&#x2F;03&#x2F;build-systems.pdf" rel="nofollow">https:&#x2F;&#x2F;www.microsoft.com&#x2F;en-us&#x2F;research&#x2F;uploads&#x2F;prod&#x2F;2018&#x2F;0...</a>
评论 #27774422 未加载
评论 #27775385 未加载
dev_sndalmost 4 years ago
This is pretty cool.<p>Spreadsheets are so powerful and really great and producing one-off solutions, but when you want to automate them you always need to redo most of the work in a &quot;serious&quot; programming language and wrap all of it in an API etc.<p>I always wondered how one could bridge the gap between creating a PoC computation in a spreadsheet and getting the same code to run in production without the rewrite. This could be a nice first step for a python server application designed in a spreadsheet.
评论 #27776224 未加载
duckmysickalmost 4 years ago
Looks very interesting.<p>Can we plug numpy into this? Or is it not necessary with the assumptions that most steps will be cached and don&#x27;t have to be recalculated.
评论 #27771418 未加载
inshadowsalmost 4 years ago
Nice Python + Qt demo. Gonna learn from it.
评论 #27769506 未加载
Tipewryteralmost 4 years ago
<p><pre><code> you can use pip install -r requirements.txt </code></pre> I don&#x27;t see a requirements.txt file.
评论 #27768940 未加载