Skip to content
HomeVideosBooksBlogs
AllTop postsTopics
Podcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K
    X

    xlwings Blog

    xlwings.org · Company blog · on HN since 2014

    The xlwings team writes about automating Excel and Google Sheets with Python, including reporting, dynamic arrays, and Python in Excel.

    Visit blogHN submissions
    ProgrammingData & Visualization
    What HN says

    HN commenters recommend xlwings as an alternative to Microsoft's Python in Excel and as a strong option for combining Python with Excel.

    Stats for nerds
    20HN people shared it
    12linked in comments
    816story points
    Jun 2024last shared
    2015people per year2024

    Top posts on HN

    1. 1
      My thoughts on Python in Excel
      1 person · 288 points · first shared 2024 · 118 comments on HN
    2. 2
      Use Python in Excel without add-ins
      18 people · 259 points · first shared 2014 · 70 comments on HN
    3. 3
      Python for Excel: A Modern Environment for Automation and Data Analysis
      1 person · 196 points · first shared 2021 · 90 comments on HN
    4. 4
      The new dynamic arrays in Excel with Python and xlwings
      1 person · 65 points · first shared 2019 · 9 comments on HN
    5. 5
      A New Way to Automate Google Sheets with Python
      2 people · 3 points · first shared 2022 · Discussion on HN
    6. 6
      What Makes Excel's Lambda Functions so great (and what doesn't)?
      1 person · 2 points · first shared 2021 · Discussion on HN
    7. 7
      Xlwings-Reports: Excel and PDF Reports with Python
      1 person · 2 points · first shared 2019 · Discussion on HN
    8. 8
      Python Libraries for Reporting and Factsheets
      1 person · 1 points · first shared 2020 · Discussion on HN

    What HN people wrote when they linked it

    • iheartmemcacheNov 2015

      Python has it's place. When teaching kids, I guess it comes down to two things - are you targeting the lowest barrier to entry to make something whiz-bang to appeal to the largest common denominator of "I use Facebook so I'd like to make 'computer things'", in which case, alright they can install Tampermonkey and mess with a really inconsistent language like Ecmascript5[1] then spend a lot of time explaining things like the DOM and how to traverse it, then the issue of how to manipulate certain things (what do if getElementByName isn't working because someone decided to not properly tag things?), followed by now we have to teach them CSS so they actually can alter the aesthetics or worse, teach them JS so can actually add functionality (which involves all of the ES5 shims and a huge confusing ecosystem that even people in the industry like us have to spend tons of time working on).

      On the other hand Python can be installed with one binary on Macs, Windows, and Linux with 300 packages and an IDE[1] and they'll be able to use it with the Excel spreadsheets down the road which they'll inevitably have to deal with if they're the average white-collar office worker. (See: http://xlwings.org/ and say goodbye to VBA). The large majority of people will actually use Excel on a regular basis and if their job involves reconciling a lot of semi-structured data, as it frequently occurs with my friends in the social sciences or other non-CS fields, they'll largely benefit from…

    • mistermannFeb 2018

      I wasn't aware of that much progress on your first link.....I'm curious to know if at the same time they've put any effort into improving the half-assed Excel COM API.

      Totally agree on the Power Query thing, if they'd support pandas + power query + embeddable Power BI objects in Excel + seamless integration with cloud functionality (there's still no way to use Power Query in SSIS for goodness sake).

      Using pandas in an Azure function and then consuming that from Excel and displaying in Power BI visualizations, all within a nie little wrapper you can email around or whatever would just be a killer app. This is one of the few advantages Microsoft has over the Amazons and Googles, I wish they'd take advantage of it.

      The syntax in your example is lovely and this is something I've wanted in Excel for a very long time.

      EDIT:

      There is some interesting 3rd party innovation happening: https://www.xlwings.org/

    • eon1Nov 2016

      Both Python and R can be used in Excel via several addons.

      Python:

      http://www.python-excel.org/

      https://www.xlwings.org/

      https://datanitro.com/

      R:

      http://rcom.univie.ac.at/download.html

      https://bert-toolkit.com/

      However, officially MS have chosen to move ahead with Javascript for add-ins and VBA-like automation:

      https://dev.office.com/docs/add-ins/develop/understanding-the-javascript-api-for-office

      http://rockthecode.io/blog/javascript-and-excel/

      As for SQL, you can use Data Connections from the GUI or ADO with JET/ACE in VBA to query Excel sheets, CSVs, etc as you please.

      Regex can be used with the VBScript.Regexp object, but it's a slightly funky (perl-like) syntax and not a great implementation.

    • taffitAug 2023

      Reading the headline, I initially thought that Microsoft bought the company behind XLWings [1], which also enables you to use Excel directly within Excel, even locally. Not affiliated in any kind to that company, just used it in the past.

      [1] https://www.xlwings.org/

    • _eDec 2017

      Dear Excel team,

      Take a look at the top three results for "excel python" on bing.com for some great ideas on how to incorporate python into excel.

      ---

      1.) https://www.python-excel.org

      2.) https://www.pyxll.com/

      3.) https://www.xlwings.org/

    • SixSigmaOct 2015

      While I appreciate the idea....

      Use Javascript to replace vba in excel

      http://blogs.msdn.com/b/officeapps/archive/2013/03/18/excel-does-javascript-a-vba-developer-s-perspective.aspx

      Use python to replace vba in excel

      http://xlwings.org/

    Related

    Rill Data Blogrilldata.com15 people

    Like MS Excel, Pivot tables never die

    Rill Data Blog
    Company · last shared 2026
    Practical Business Pythonpbpython.com33 people

    Effectively Using Matplotlib

    Practical Business Python
    Personal · last shared 2023
    Domino Data Lab Blogblog.dominodatalab.com37 people

    You Can’t Do Data Science in a GUI

    Domino Data Lab Blog
    Company · last shared 2021
    Andrew Godwinaeracode.org68 people

    Hello, This Is London Rising: 3D Printing Maps from LIDAR Data

    Andrew Godwin
    Personal · last shared 2025
    marimo Blogmarimo.io37 people

    Notebooks as reusable Python programs

    marimo Blog
    Company · last shared 2026
    Python at Microsoftdevblogs.microsoft.com/python71 people

    Python in the Windows 10 May update

    Python at Microsoft
    Company · last shared 2026
    The Morning Paperblog.acolyer.org606 people

    Local-first software: you own your data, in spite of the cloud

    The Morning Paper
    Personal · last shared 2026
    PyPy Blogpypy.org183 people

    PyPy has moved to Git, GitHub

    PyPy Blog
    Company · last shared 2026