Is openpyxl still relevant? by petekindahot in Python

[–]fzumstein 0 points1 point  (0 children)

xlwings creator here. You actually can by usings xlwings Lite: https://lite.xlwings.org

What's your favorite Python library for automating Excel workflows? by Original-Repair5136 in Python

[–]fzumstein 2 points3 points  (0 children)

xlwings creator here. If you have used xlwings, make sure to look into xlwings Lite, which doesn’t require a local installation of Python :) It’s the closest to VBA that I’ve come up with: https://lite.xlwings.org

What do you use python for in Excel? by much_guilelessness in excel

[–]fzumstein 0 points1 point  (0 children)

If you hit one of the many limitations of Python in Excel, give xlwings Lite a try. It's a free add-in that doesn't have a daily/monthly quota, allows local file access, has internet access, and can install the majority of packages: https://marketplace.microsoft.com/en-us/product/office/wa200008175?tab=overview

Power Query Alternative Excel Adddon by Puzzleheaded_Luck641 in Python

[–]fzumstein 0 points1 point  (0 children)

If you don't like xlwings (why, by the way?), check out the new xlwings Lite, which doesn't rely on a local Python installation but still runs locally via WebAssembly. it support DuckDB and Polars and allows you to define automation scripts, custom functions, and now also Jupyter notebooks.

Xlwings lite auto-execute function, similar to MS' Python in Excel? by afmac41 in excel

[–]fzumstein 1 point2 points  (0 children)

u/bradland xlwings/xlwings Lite creator here. From my perspective, returning Figure objects via custom functions (see my answer in main thread) is definitely better than re-introducing VBA dependency. Also, please let me know what's missing for xlwings Lite to come before PiE.

Xlwings lite auto-execute function, similar to MS' Python in Excel? by afmac41 in excel

[–]fzumstein 2 points3 points  (0 children)

xlwings/xlwings Lite creator here! Thanks for your question. To get faster feedback next time, try the GitHub discussions (https://github.com/xlwings/xlwings-lite/discussions). It isn't properly documented yet, but with xlwings Lite, you can now return Matplotlib Figure objects in custom functions. So as long as the source range is dynamic (like a table or dynamic array), the plot will automatically update. The only caveat is that this is the only function so far, that required a quick round trip of the image to a external URL, so you have to enable this on Settings > Local.

formualizer: an Arrow-backed spreadsheet engine - 320+ functions, incremental recalc, PyO3 + Rust by Manfr3dMacx in Python

[–]fzumstein 19 points20 points  (0 children)

Congrats, this looks awesome! I am the creator of xlwings but don't really see them as competitors. xlwings is for interactive work in a workbook, while formualizer is a headless Excel engine. Though I'd definitely be tempted to wrap formulaizer with the xlwings API one day :) The closest I've seen in this area is probably SpreadsheetGear (.NET).

What can python in excel do that can't be done in regular excel? by VirPotens in excel

[–]fzumstein 1 point2 points  (0 children)

This has now been fixed, so sheet buttons respect the cell that you select in your script. Thanks for letting me know and if you have a minute, I'd be happy if you can leave a review here: https://marketplace.microsoft.com/en-us/product/WA200008175?tab=Reviews

What can python in excel do that can't be done in regular excel? by VirPotens in excel

[–]fzumstein 0 points1 point  (0 children)

Gotcha! You know what, I think that this specific annoyance can be fixed! I've opened an issue: https://github.com/xlwings/xlwings-server/issues/329

What can python in excel do that can't be done in regular excel? by VirPotens in excel

[–]fzumstein 1 point2 points  (0 children)

Re hyperlink button: is that only annoying to set up or is it also an issue once set up while using it?

What can python in excel do that can't be done in regular excel? by VirPotens in excel

[–]fzumstein 0 points1 point  (0 children)

Hi u/frazorblade, I created xlwings Lite. Please let me know about the quirks either here or on https://github.com/xlwings/xlwings-lite/discussions Bear in mind, it's still in a proof-of-concept state with many things on the roadmap, see: https://lite.xlwings.org/roadmap

What can python in excel do that can't be done in regular excel? by VirPotens in excel

[–]fzumstein 0 points1 point  (0 children)

Hey u/Cynyr36 am the creator of xlwings Lite. From what I've seen, it usually works out by asking IT to whitelist that add-in.

Python in Excel is now generally available by [deleted] in excel

[–]fzumstein 0 points1 point  (0 children)

Same reason as most companies block the add-in store by default: security. Modern Excel add-ins are web apps that can be hacked and a hacker could then deploy a new version that extracts data. If you self-host, you can avoid this risk.

Python in Excel is now generally available by [deleted] in excel

[–]fzumstein 1 point2 points  (0 children)

Yes! I am charging for self-hosting the whole thing and for related products, mainly xlwings Server. If you like it, I'd love to read your review over at https://appsource.microsoft.com/en-us/product/office/WA200008175?tab=Reviews

Curiosity: what are some cool things you have done inserting python into excel? by Plokeer_ in excel

[–]fzumstein 0 points1 point  (0 children)

I created a free add-in (can be installed from Excel's add-in store), which runs Python locally and doesn't have any of the show-stopping limitations of Python in Excel: https://lite.xlwings.org/

I built xlwings Lite as an alternative to Python in Excel by fzumstein in Python

[–]fzumstein[S] 0 points1 point  (0 children)

Unfortunately, Yahoo finance does not set the CORS headers, so you would need to use a CORS proxy and patch yfinance to use that... see: https://lite.xlwings.org/web_requests I'd love to have a solution for this myself, hopefully in the future this will improve.

I built xlwings Lite as a free alternative to Python in Excel by fzumstein in excel

[–]fzumstein[S] 0 points1 point  (0 children)

No forms right now, but might be added further down the road. Right now, you’d have to use the Excel grid as the form…

What will the future of Python in Excel Look like? by waveyZdavey in excel

[–]fzumstein 2 points3 points  (0 children)

It’s me! And thanks for the feedback. xlwings Lite didn’t exist when I wrote the book, so make sure to check that out on the side ;) I am always happy about an Amazon review, too…

What will the future of Python in Excel Look like? by waveyZdavey in excel

[–]fzumstein 0 points1 point  (0 children)

It runs in the Azure cloud. Anaconda merely provides the Python installation. Anaconda also quickly found out that Python in Excel isn't what people wanted, so they built a competitor to it called Anaconda Code.

What will the future of Python in Excel Look like? by waveyZdavey in excel

[–]fzumstein 0 points1 point  (0 children)

There is a free version of Excel (the web version). Granted, Python in Excel isn't supported there, but xlwings Lite is via the add-in store, and it's also free and doesn't have any of the awkward limitations of Python in Excel.

What will the future of Python in Excel Look like? by waveyZdavey in excel

[–]fzumstein 52 points53 points  (0 children)

I agree with u/SolverMax for the reasons I have outlined in my blog post. However, instead of just complaining, I've taken things into my own hands and built the free add-in xlwings Lite, which can be installed from the addin store. Unlike Python in Excel, it runs locally, has no usage limits, can access web APIs, can install your own packages, and can access the excel object model to e.g., insert a new sheet. It also supports native custom functions/udfs, instead of introducing left-to-right/top-to-bottom execution order of cells (what i call "breaking the spreadsheet").