Live data from Hacker News

My thoughts on Python in Excel

xlwings.org

71–80 of 123 posts

Re: My thoughts on Python in Excel

#71
I suppose it's time to share my dream excel functionality: Turbo F2.

F2 should enable the user to trace calculations back to the original data, not only the current calculation step.

In basis spreadsheet, this would yield a jumble of steps that are undocumented and hard to parse. But that's where the python, lambdas and custome functions come in: They enable legibility of turboF2.

Re: My thoughts on Python in Excel

#72
Hi all, I am Felix, the author of the post. I just wanted to reiterate that this post was mainly meant as a summary of my GitHub issues I opened with them. So it should really be seen as a feedback to help them improve the product. Python in Excel currently covers a completely different use-case than xlwings, but Python in Excel inspired me to finally look into WASM and PyScript, which is an awesome product.

Re: My thoughts on Python in Excel

#73
I looked at the clients package and had a bit trouble understanding where it sits in the Python-excel landscape. Is it a competitor to openpyxl?

The pro version has quite a price tag, so I’m assuming they have a big value add.

Re: My thoughts on Python in Excel

#74
post #4

One should note that this comes from xlwings, a Python-in-Excel plugin with a $1,490 professional lifetime license. Excel's changes will end up eating their reason to exist.

Jetbrains still makes delightful products, even though MS had been pushing their turd of an editor onto everyone since forever...

Yet they feel threated enough, to have started Fleet and SpaceCode.

Re: My thoughts on Python in Excel

#75
Felix's upcoming work is intriguing and would enable a much nicer integration of Python into the Excel ecosystem. The use of PyOdide and WASM enables execution of the Python logic on-device. The same tactic is used by PySheets and taken a bit more to the extreme by implementing the cell functions, but also the entire sheet UI and logic in Python. Check it out if you are approaching the space from the perspective of a Python programmer, rather than an Excel user. See https://pysheets.app

Re: My thoughts on Python in Excel

#76

Some alternate ideas: - make a python library/driver for Excel sheets that imitates Pandas Dataframe API but (a) has reactive cells (b) imports equations from Excel - make a notebook IDE that integrates excel spreadsheets. Make everything reactive. Have a split notebook/spreadsheet view. A little off-topic but it would be rad if Excel had more Airtable/Baserow/Grist features.

Your second proposal looks like https://pysheets.app

Re: My thoughts on Python in Excel

#77

Maybe its time to start fresh with a clean sheet? (Pun). The spreadsheet paradigm is immensely intuitive and arguably the only alternative to the standard procedural programming currently in use in number crumching. But therein lies also a major weakness when used for important tasks: hard to validate. Once you further combine it with API calls and whatnot, the situation gets totally out of hand: how do you reproduce…

I tried that exactly with PySheets by implementing the sheet in Python itself, rethinking how Jupyter Notebook would look if it treated the data science problem as a dependency graph rather than a linear storytelling document. See https://pysheets.app

Re: My thoughts on Python in Excel

#78
The mistake is "the grid". The spreadsheet as a way to allow IT-illiterate to do stuff on a desktop is a mistake.

Yes, we do need some kind of tabular data UIs but SMALL UIs elements, not the base of the UI. Beside that the obscene "wrapping" of Python to make it "user-safe" makes also it next to useless.

A less ugly approach to tabular UIs is the one from R-Studio, while it's limited, another is org-mode tables while again they are limited in UI terms. Both are a bit better than Jupyter REPL model witch is itself far better than a spreadsheet.

Re: My thoughts on Python in Excel

#79
post #2

Without interacting with it myself, none of this is surprising. I have used excel in the past, and I am a long term python user. But if you asked me today what I really wanted to make my life easier and ultimately a product or business better using only excel? I would ask for lua or scheme. I don’t need a batteries included environment embedded into a spreadsheet. I just want sane syntax for common functionality whic…

All of that is much easier in Python where you have access to a lot of other people data wrangling utilities

Re: My thoughts on Python in Excel

#80

Earlier quoted context omitted.

> Excel still lets you name cells, does it not? It does, but that too is a half assed feature so users struggle with it IRL

Excel implementers struggle with it. Half the features of Excel cannot deal with named cells. Try for example to use named cells in Conditional Formatting. Doesn't work at all, ranges cannot be named cells or tables, and condition formulas can only reference named cells with extremely ugly contortions. There are lots and lots of additional examples of similar problems. Excel is a loose agglomeration of unrelated feat…

I've always wondered why they've never done a basic pass of fixing stuff like this.
Post reply on HN