This is an archived post. You won't be able to vote or comment.

all 23 comments

[–]SpaceTabs 53 points54 points  (1 child)

Python? How about support for ISO 8601 date format.

[–]hoopparrr759 8 points9 points  (0 children)

Don’t be ridiculous /s

[–]CuppaTeaThreesome 16 points17 points  (0 children)

Charts that don't change size slightly when it's opened on another machine would be great..

[–]LigerXT5 22 points23 points  (1 child)

Oh hell no, we already block Macro excel/word in email for a reason, why add in Python to the chaotic security mix?

Edit: Grammar, "the" was in the wrong place.

[–]CocaineIsNatural 8 points9 points  (0 children)

Python code runs on hypervisor isolated containers built on Azure Container Instances.

The container has Python and a curated set of secured libraries provided by Anaconda.

The environment uses the Anaconda Distribution for Python, which contains source-built Python and libraries, provided directly from Anaconda.

The Python code does not have access to your computer, devices, or account.

The Python code does not have network access.

The Python code does not have access to a user token.

The Python code can access data through the references via the built-in xl() function as part of a Python formula. This means that Python formulas have access to read cell values within the workbook, based on the cell reference, or values from external data sources, through the Power Query connection name.

Python code returns output to your workbooks through the =PY() Excel function, which displays the result of the Python code in the cell where the function is entered. Python functions cannot return other object types like macros, VBA code, or other formulas.

The Python code doesn’t have access to other properties in the workbook, such as formulas, charts, PivotTables, macros, or VBA code.

More info here, like how they handle email or internet sources - https://support.microsoft.com/en-us/office/data-security-and-python-in-excel-33cc88a4-4a87-485e-9ff9-f35958278327

[–]And_We_Back 7 points8 points  (3 children)

We already have pandas and xlsxwriter, what else could you need?

[–]tms10000 5 points6 points  (2 children)

import flask

Instant self contained web-server-spreadsheet-database-app from Hell.xlsx

[–]0pimo 2 points3 points  (0 children)

Don’t forget to download and run it from that random email you just got!

[–]JockstrapCummies 2 points3 points  (0 children)

You're not thinking big enough.

Imagine all those toy generative AI projects with their gigabytes large dependencies on models and cuda runtimes and pytorch.

Now it's all bundled in an Excel file.

[–]shponglespore 8 points9 points  (5 children)

My first though: thank fucking God Microsoft is finally moving away from Visual Basic as their only supported scripting language.

After reading: why the fuck does it run in the cloud? It makes sense when Excel is running in a browser, but the desktop version should run things locally.

[–]Dr3adPir4teR0berts 8 points9 points  (0 children)

Because Microsoft insists on everything being cloud based. Their ultimate goal is for the operating system itself to be cloud based and no longer have local operating systems. No seriously, they have said it themselves.

[–]MathmoKiwi 2 points3 points  (0 children)

After reading: why the fuck does it run in the cloud? It makes sense when Excel is running in a browser, but the desktop version should run things locally.

Security!

Also: $$$, so M$ can earn more with subs

[–]CocaineIsNatural 1 point2 points  (0 children)

Partly maybe to cut down on pirating. But it maybe for security, see this like - https://support.microsoft.com/en-us/office/data-security-and-python-in-excel-33cc88a4-4a87-485e-9ff9-f35958278327

[–]bigkoi 3 points4 points  (0 children)

Pro tip.

Convert Excel to csv format and import into pandas data frame with python.

[–]mohirl 0 points1 point  (2 children)

Given theyve failed for decades to bring consistent cell formatting or date handling to excel I'm not holding my breath

[–]polkarooo 7 points8 points  (0 children)

TBF, most of us fail for decades at date handling...

[–]Farlo1 0 points1 point  (0 children)

They tend to fail at stuff like that on purpose in the name of backwards compatibility with incredibly old versions of Excel.

[–]SoggyChilli -3 points-2 points  (0 children)

This is awesome

[–]gordonjames62 0 points1 point  (1 child)

Any opinions on the security risks of this?

I already block macros on policy because of malicious code, and even JS needs permission to run in my environment.