News for hackers. Stuff that matters.

fzumstein

Re:Pre-Release of Polars 2.0 on Thursday September 03, 2026 @08:19AM (#49549027)
awesome, thanks!
Re:Pre-Release of Polars 2.0 on Thursday September 03, 2026 @05:56AM (#49547997)
This sounds interesting! Do you have a specific example by any chance or blog post/doc references?
Re:Pre-Release of Polars 2.0 on Thursday September 03, 2026 @05:06AM (#49547650)
I tend to agree. SQL may have been harder to write in the past (worse autocomplete than pandas/polars), but now that AI is writing the code, SQL is usually much easier to read. So DuckDB is another interesting alternative to pandas.
Re:Incident with Github.com on Monday August 17, 2026 @10:07AM (#49331215)
Funny enough, I received a marketing email from GitHub during the outage with the following subject: "What if every pull request you started actually shipped"
Pyodide 314.0 is already available in xlwings Lite (the Python in Excel alternative you actually wanted).
DuckDB also runs in Excel, by the way, via the free xlwings Lite add-in that you can install from the add-in store. It’s using the Python package and allows to write scripts, custom functions, as well as use a Jupyter-like notebook workflow.
Re:Pyodide: a Python distribution based on WebAssembly on Tuesday March 17, 2026 @02:46AM (#47409415)
Pyodide powers xlwings Lite, a free Excel add-in that you can install from Excel’s add-in store with a single click. It outperforms Microsoft’s official Python in Excel solution in every coceivable way: price, privacy, speed, can install packages, can access the internet, can access local files, doesn’t have a usage quota, can automate Excel and create native UDFs. See https://lite.xlwings.org
Re:Please Just Try Htmx on Thursday December 18, 2025 @11:38AM (#46314962)
Have you tried the CSP build of AlpineJS? It takes the code out of the template into a proper JS file, no unsafe-eval. Isn't state management mostly handled on the backend when you use AlpineJS?
Re:Xlwings Lite – Python in Excel Using Pyodide on Saturday April 05, 2025 @04:40AM (#43591932)
I am not a random user, but the creator. The dependencies are managed via standard requirements.txt file, which is stored in the Excel workbook itself. When you open xlwings Lite with the workbook, the dependencies are installed from either PyPI or Pyodide's own repository (after the first download from the browser's cache).

Direct db queries are indeed a restriction of Wasm/Pyodide, but there are more and more databases offering a HTTP layer. For example, Supabase has this built-in via PostgREST. For Oracle, there is Oracle REST Data Services (ORDS). Ultimately, you can also build your own little proxy server, although that's a little bit more work, but might still be worth it for company-internal use.

Re:Xlwings Lite – Python in Excel Using Pyodide on Saturday April 05, 2025 @04:29AM (#43591890)
No, this is for Excel only, but it does work with the free online version of Excel. I think LibreOffice has support for Python via PyOO.
Re:SQLookup on Friday December 20, 2024 @06:03AM (#42470069)
SQLookup is an Excel add-in that gives you access to the SQLOOKUP function. The SQLOOKUP function allows you to query data in your Excel workbook using SQL (SQLite dialect). The add-in is free and works with Excel on Windows, macOS, and web. It can be installed via the add-in store.
Re:GitHub Copilot is now available for free on Wednesday December 18, 2024 @02:23PM (#42453889)
So basically it’s free for 1 day per month (I only use chat).
Re:Python in Excel – Available Now on Monday September 16, 2024 @05:08PM (#41560927)
It's exactly why I built xlwings, to replace VBA with Python. Python in Excel instead is a competitor to the Excel formula language.
Re:My Thoughts on Python in Excel on Friday June 14, 2024 @10:35AM (#40681312)
No offense taken, and happy that xlwings was an inspiration for creating Row Zero! I don't really buy the security issues though for being the reason for switching from Excel to Row Zero. Yes, Excel has security issues, but so does the cloud, but at least the issues with Excel can be dealt with: disable VBA macros on a company level, run Excel on airgapped computers, etc. Promising that your cloud won't be hacked or is unintentionally leaking information is impossible, no matter how much auditing and certification you're going through. The relatively recent addition of xlwings Server fixes pretty much all of the issues you encountered in your previous company: user don't need a local installation of Python, but the Office admin just pushes an Office.js add-in to them and their done. No sensitive credentials etc. are required to be stored on the end-users computer or spreadsheet either as you can take advantage of SSO and can manage user roles on Microsoft Entra ID (that companies are using already anyways).
Re:My Thoughts on Python in Excel on Friday June 14, 2024 @09:23AM (#40680695)
As the author of said second class add-in, let me just guess that your most popular feature request was adding the "Import from xlsx" functionality...which describes the whole issue: it's always Excel + something, never something instead of Excel.
Re:My Thoughts on Python in Excel on Friday June 14, 2024 @09:15AM (#40680633)
xlwings is a competitor to VBA rather than openpyxl: openpyxl can read and write the Excel file on disk, without involving the Excel application. xlwings is all about automating the Excel application, and write macros and custom functions in Python.
Re:My Thoughts on Python in Excel on Friday June 14, 2024 @05:36AM (#40679160)
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:Ask HN: Share Your YoutTube Channel on Saturday June 08, 2024 @04:06PM (#40619901)
It's been 10 years. But upload videos very irregularly.
Re:Ask HN: Share Your YoutTube Channel on Saturday June 08, 2024 @01:30PM (#40619038)
My most obscure video is about programming VBA in VS Code. Other than that, I focus on Python for Excel (no "Python in Excel"): https://www.youtube.com/@xlwings9689
Re:Htmx and the Rule of Least Power on Saturday April 13, 2024 @03:54AM (#40021336)
For the Python/Jinja world, there is Jinja2-fragments that allows you to return blocks of the template without having to extract it to partials. I am sure there are similar solutions for other template languages. See https://github.com/sponsfreixes/jinja2-fragments.
Never heard of it either. "Build and share delightful machine learning apps, all in Python." I am wondering what the heck is so special about "machine learning apps" that would differentiate them from any other app that has a UI with a Python backend.
Re:Microsoft is bringing Python to Excel on Tuesday August 22, 2023 @06:24PM (#37229365)
Totally agree on the part of the add-in: Just give us a dead-simple method to load the manifest locally and be done with it!
Re:Microsoft is bringing Python to Excel on Tuesday August 22, 2023 @06:22PM (#37229347)
I don't think that's necessarily true. They built VSTO for C#, but everybody was using ExcelDNA instead, an Open Source solution that was much better!
Re:Microsoft is bringing Python to Excel on Tuesday August 22, 2023 @05:30PM (#37228778)
The same with xlwings (works on macOS, too):

  >>> import xlwings as xw
  >>> wb = xw.Book()
  >>> sh = wb.sheets[0]
  >>> sh["A1"].value = "Hello World"
Re:Microsoft is bringing Python to Excel on Tuesday August 22, 2023 @05:24PM (#37228714)
Which part do you find difficult? The web backend or the deployment of the Manifest.xml via the app store / office admin?
Re:Microsoft is bringing Python to Excel on Tuesday August 22, 2023 @03:31PM (#37227482)
It's me, yes, are you Michael then ;)? Yeah, I love the Office.js platform, I believe it's the most versatile extension platform there is, it just came out during an unfortunate time (when people believed that you can't use JS without React anymore ;) Anyhow, the magic of Office.js is that you can use it like a JS framework with total freedom what you use on the backend (it's just a fetch call away), so whether that is .NET or Node or Python/R/Julia doesn't matter at all, it's just that the official docs don't really bother to explain that or show an example other than Node & C#. What's a game changer (and only available on Office.js) is the integrated authentication via SSO/Azure AD, which is the first thing any IT department in a corporation is interested in.
Re:Microsoft is bringing Python to Excel on Tuesday August 22, 2023 @02:07PM (#37226492)
Glad I am not the only one with this impression :)

Older »