Hello @Ono Jacob ,
Welcome to Microsoft Q&A
If you're seeing only xlwings Lite, it likely means you're not using the full Microsoft 365 version that supports Python in Excel.
Xlwings is a standalone, free package. No subscription required.
Python in Excel is only available through Excel for Microsoft 365 subscription (not just Office 2021 or 2024). If you want the official โPythonโ button in the ribbon, you need an active Microsoft 365 subscription and the Insider build.
Refer to this site for more info on Python in Excel:
Introduction to Python in Excel - Microsoft Support
Refer to here for Microsoft 365 subscription:
https://www.microsoft.com/en-us/microsoft-365/buy/microsoft-365
I hope this help answer your question. Feel free to reply back to this post if you need further assistance.
------------------------------------------------------------------------------------------------
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Answer from Xavier-D on learn.microsoft.comI built xlwings Lite as an alternative to Python in Excel
Python and xlwings
Can I create a table in excel with xlwings with python? - Stack Overflow
pip - installing python xlwings module - Stack Overflow
Hi all! I've previously written about why I wasn't a big fan of Microsoft's "Python in Excel" solution for using Python with Excel, see the Reddit discussion. Instead of just complaining, I have now published the "xlwings Lite" add-in, which you can install for free for both personal and commercial use via Excel's add-in store. I have made a video walkthrough, or you can check out the documentation.
xlwings Lite allows analysts, engineers, and other advanced Excel users to program their custom functions ("UDFs") and automation scripts ("macros") in Python instead of VBA. Unlike the classic open-source xlwings, it does not require a local Python installation and stores the Python code inside Excel for easy distribution. So the only requirement is to have the xlwings Lite add-in installed.
So what are the main differences from Microsoft's Python in Excel (PiE) solution?
-
PiE runs in the cloud, xlwings Lite runs locally (via Pyodide/WebAssembly), respecting your privacy
-
PiE has no access to the excel object model, xlwings Lite does have access, allowing you to insert new sheets, format data as an Excel table, set the color of a cell, etc.
-
PiE turns Excel cells into Jupyter notebook cells and introduces a left to right and top to bottom execution order. xlwings Lite instead allows you to define native custom functions/UDFs.
-
PiE has daily and monthly quota limits, xlwings Lite doesn't have any usage limits
-
PiE has a fixed set of packages, xlwings Lite allows you to install your own set of Python packages
-
PiE is only available for Microsoft 365, xlwings Lite is available for Microsoft 356 and recent versions of permanent Office licenses like Office 2024
-
PiE doesn't allow web API requests, whereas xlwings Lite does.