Live data from Hacker News

Microsoft is bringing Python to Excel

theverge.com

441–450 of 455 posts

Re: Microsoft is bringing Python to Excel

#441

Earlier quoted context omitted.

Don’t feel too bad because if you would have created a product from it, today this product would be deprecated..

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!

By chance I built quite an interesting addin for excel using VSTO. It was great, nothing to complain about. In the corporate world Microsoft tech is widely common.

Re: Microsoft is bringing Python to Excel

#442

Earlier quoted context omitted.

How large is pretty big? And who said it must be installed by default? Hyper-V is enabled by default on supported hardware.

> How large is pretty big? Python data science containers are on the order of GBs. > And who said it must be installed by default? I did end my comment with thoughts that I think it would be nice to have as an optional install. Mentioning why it isn't likely a default install is relevant because they want this Python feature to be accessible to everyone and they want people to collaborate and the UX for an optional i…

> Python data science containers are on the order of GBs.

Yes. And SSDs are on the order of 100s and 1000s of GBs.

> Mentioning why it isn't likely a default install is relevant because they want this Python feature to be accessible to everyone and they want people to collaborate and the UX for an optional install isn't what they were looking for and would complicate things.

How do you know these things?

It won't be accessible to everyone until it's installable. Collaboration is not cloud exclusive. The UX isn't what they were looking for is circular.

Re: Microsoft is bringing Python to Excel

#443

Earlier quoted context omitted.

Sandboxing python enough that millions of users could safely pass around excel workbooks is a super hard problem, especially when you allow third party libraries. Forcing it to run in an isolated environment they control simplifies the problem greatly.

Windows has it's own implementation of containers, and with a docker-like structure, and xlsx being a zip file, excel could simply have a dockerfile like structure "FROM excel-python:2023" "COPY xlsx:scripts/" etc. new versions of excel could keep the last few 'base' containers, or if they are in love with the cloud, the signed, verified base images could be pulled on request.

The latest Windows does, but Excel is used across tons and tons of devices, and you'd want compatibility across them all.

Re: Microsoft is bringing Python to Excel

#444

Earlier quoted context omitted.

> It seemed like Microsoft's product complexity and dedication to backwards compatibility of software would make them the ones to move software management forward. That's precisely why they _didn't_ go with the package manager model of software distribution. Package managers in most distros assume that everything you download via apt/dnf is a part of the operating system and integrates with whatever dependencies the…

The state space doesn't have the conveniences that linux and language tools leverage, that's why I wanted to see them try to advance the field beyond what we have now.

Which conveniences are you talking about? Chocolatey gives me the "automatically updating my programs" experience, and vendoring dependencies with vcpkg is about as turnkey as it gets - add a git submodule to your project, reference the vcpkg toolchain in your CMakeLists.txt file, and you're done.

Re: Microsoft is bringing Python to Excel

#445
post #373

Earlier quoted context omitted.

I cannot remember the last time I had some long number and thought to myself, "You know what will be helpful, convert this number into scientific notation!"... It's asinine Excel has this behavior with any large number. Try to work with a list of EAN/UPC codes... it'll wreck every single one every single time, unless you take significant care to guard against it via formatting, special characters that trick it into u…

> I cannot remember the last time I had some long number and thought to myself, "You know what will be helpful, convert this number into scientific notation!"... Okay, so set formats appropriate to what is useful for your data. Defaults don't cover all cases, otherwise there would be no non-default options. > It's asinine Excel has this behavior with any large number. Try to work with a list of EAN/UPC codes... Codes…

The defaults should be sane - that's the point. What percentage of Excel users actually want data automatically converted into Scientific Notation? Close to zero I'd wager.

Your offered work-arounds only apply in a very narrow workflow. I work with Excel nearly every day, all kinds of files (CSV, TXT, XLS/X, etc). There's so many ways this issue can bite you unexpectedly - causing you to save and permanently destroy data.

If I type/paste/import/download/whatever `01234567890987654321` into a cell, 100% of the time I do not want `1.23+E18`. I don't want to even see that, I want to see the original value I entered.

It's asinine.

Excel may be the most used Office Suite app, but it's by far the most painful to use. The Excel Team has a long history of justifying downright perplexing behavior. Remember when Excel was the only Office app that didn't support Snap-To back in the Win Vista/7 days? Joel had a long-winded explanation that boiled down to "just cause"... it was perplexing even at the time. It really makes one wonder how bad the rat nest of a codebase Excel is.

"There's ways around our astonishing default behavior so just deal with it". That's not a great answer.

Re: Microsoft is bringing Python to Excel

#447
post #438
post #369

Earlier quoted context omitted.

It includes things that aren't selected, which is other random data. If I select, copy, and paste, the only desirable outcome is that I get a copy of my selection.

I don't understand what you mean. In my example I select the cells that contain 1, 2, 3, 7, 8, 9, a, b, c, then copy, then go somewhere else and paste, and Excel pastes 1, 2, 3, 7, 8, 9, a, b, c. I don't see an other data.

Try pasting into another app, like a text editor.

Re: Microsoft is bringing Python to Excel

#448
post #204

Earlier quoted context omitted.

Are you saying that excel does preserve digits? I must be doing something very wrong (entirely possible), cause once the document is saved, the digits are gone.

That reads as a normative "should" to me. It doesn't preserve digits, but it ought to.

Yes, sorry, that's what I meant. Excel doesn't preserve the digits but it should.

Re: Microsoft is bringing Python to Excel

#449

Earlier quoted context omitted.

You can just ship a copy of Python with Excel, no need to ask anybody to maintain their own installation.

Anaconda distributions aren't exactly small. I'd also assume there's some sort of environment isolation, so you're getting multiple copies. Maybe one per workbook?

The embeddable package from python.org [1] is 20 MB unpacked. To install different sets of packages per workbook, just have Excel automatically set the module path as appropriate.

[1] https://www.python.org/downloads/release/python-3114/

Re: Microsoft is bringing Python to Excel

#450

Earlier quoted context omitted.

It's the dependency hell problem as packages are added to the sandbox environment. If they were just shipping python (standard library), it would be fine, but all of the useful libraries have large numbers of dependencies.

doesn't this dependency hell still exist, but just in the cloud?

It's not hell because they carefully curate the set of libraries rather than having end-users attempt to have every combination of packages (and then blame microsoft for the dependency hell / lack of support for their exact configuration.).
Post reply on HN