News: 1726644134

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Python in Excel goes live – but only for certain Windows users

(2024/09/18)


Office power users, rejoice: Python in Excel is now generally available - provided you have the right license and machine.

First [1]teased last year, the new feature allows Excel users to run Python scripts inside workbooks for analytics and other purposes. Redmond [2]announced the official release of Python in Excel for Windows users of Microsoft 365 Business and Enterprise in a blog post this week, a little over a month after local execution of Python in Excel rolled out in [3]public beta .

"We believe there is a significant opportunity for anyone using Excel for analysis to greatly enhance their work with Python," Microsoft said. Included in the Excel for Python release is a large language model integration that will allow Excel users to ask the Copilot to build scripts for them with plain language commands.

[4]

Microsoft partnered with data science tool maker Anaconda to develop the Python-Excel integration. As we've previously reported, data can move effortlessly between the two platforms using a few custom-defined functions.

[5]

[6]

This two-way function sending is a key part of security - Microsoft states Python processes Excel data without revealing the user's identity, and all Python code runs in a secure, isolated environment, only accessing libraries approved by Anaconda​.

While that's all great, the general release of Python in Excel is only general for [7]a select subset of users : Those who running Excel for Windows with either an Enterprise or Business Microsoft 365 subscription on the Current Channel. On unsupported platforms like Mac and Android, users still can view Python code in Excel workbooks, Microsoft noted, but cells will display an error if attempting to execute calculations - not even the web version of Excel gets a pass.

[8]Python still has the strongest grip on developers

[9]Over 170K users caught up in poisoned Python package ruse

[10]It is 2023 and Excel's reign of date terror might finally be at an end

[11]You know what spreadsheets need? LLMs, says Microsoft

Microsoft told The Register that it aims to add Mac and Web support later. "The roadmap will be updated with estimated roll-out dates in the future, but we do not have any dates to share at this time," a spokesperson said.

Excel users who've been enjoying free access to the preview of Python in Excel won't have to worry about having their new tool ripped away, with Microsoft saying that any Windows user with a 365 Business or Enterprise license can use Python in Excel now without needing to pay extra for the privilege.

[12]

That said, there are some Python in Excel options that are locked behind a [13]paywall . Those who want access to a nebulous "premium compute" option or the ability to switch between manual, partial and automatic Python calculation modes will have to fork over $24 per user per month (or $240 per user per year) for the privilege.

Those with Family and Personal Microsoft 365 accounts can continue to use Python in Excel in preview, with no indication given as to when Microsoft plans to generally release it for those users. ®

Get our [14]Tech Resources



[1] https://www.theregister.com/2023/08/22/python_excel_anaconda/

[2] https://techcommunity.microsoft.com/t5/excel-blog/python-in-excel-available-now/ba-p/4240212

[3] https://www.theregister.com/2024/08/05/anaconda_excel_python/

[4] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/applications&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=2&c=2ZuqkxbA7mVza7KZjFwj2EgAAAoA&t=ct%3Dns%26unitnum%3D2%26raptor%3Dcondor%26pos%3Dtop%26test%3D0

[5] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/applications&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=4&c=44ZuqkxbA7mVza7KZjFwj2EgAAAoA&t=ct%3Dns%26unitnum%3D4%26raptor%3Dfalcon%26pos%3Dmid%26test%3D0

[6] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/applications&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=3&c=33ZuqkxbA7mVza7KZjFwj2EgAAAoA&t=ct%3Dns%26unitnum%3D3%26raptor%3Deagle%26pos%3Dmid%26test%3D0

[7] https://support.microsoft.com/en-us/office/python-in-excel-availability-781383e6-86b9-4156-84fb-93e786f7cab0

[8] https://www.theregister.com/2023/05/04/developers_python_codesignal/

[9] https://www.theregister.com/2024/03/25/python_package_malware/

[10] https://www.theregister.com/2023/10/23/excel_date_format_feature/

[11] https://www.theregister.com/2024/07/16/microsoft_research_llms_grok_spreadsheets/

[12] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/applications&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=4&c=44ZuqkxbA7mVza7KZjFwj2EgAAAoA&t=ct%3Dns%26unitnum%3D4%26raptor%3Dfalcon%26pos%3Dmid%26test%3D0

[13] https://www.microsoft.com/en-us/microsoft-365/python-in-excel

[14] https://whitepapers.theregister.com/



Phew...

xyz

Dodged a bullet there.

Richard 12

I guess this is to deprecate and remove VBA.

So on the one hand we get to swap one massive security hole for another one, while on the other Microsoft gets to reduce their workload while charging more.

On the gripping hand, it also means LibreOffice can now legally implement the same scripting language.

Charlie Clark

The move is an attempt to stay relevant as more and more people do stuff they used to do in Excel with tools like Pandas.

The Python code gets run on Azure machines.

CowHorseFrog

Python is well known for its native code too help its speed problems, whats the bet this will help introduce a new wave of problems..

Charlie Clark

The whole thing is designed to run computationally expensive tasks on Azure. Millions are people are already using Python tools for sophisticated data analysis.

beardman

Execl and some scripting language... No, does not ring a bell...

Anonymous Coward

Funnily enough, yesterday I couldn't track down a problem in a very large excel spreadsheet which was supposed to be processing several sets of loading data for a finite element model (each set of data had over 0.5 million items.) In the end, I gave up and processed the data in a python script instead..... (probably what I should have done to start off with, but when you're given data in excel, it's easy to temporarily forget there are other options....)

run Python scripts inside workbooks

Pascal Monett

Yay ! A whole new playground for mischief-makers is now available !

I can't wait to find out how miscreants will be able to subvert this.

For gin, in cruel
Sober truth,
Supplies the fuel
For flaming youth.
-- Noel Coward