r/OfficeJs • u/AstronautNew8452 • Nov 30 '22
Discussion Pyodide (Python in Excel)
Hi, I was just stumbling around getting ready for Advent of Code this year, which I want to do in Excel. I'm pretty familiar with VBA so I'm going to try not to use it. Here's my approach for the puzzles: First I'll try to solve it using LAMBDA functions and the Advanced Formula Environment. Then I'll try Office Scripts through the new Automate tab, or on the web. Finally, I was planning to resort to VBA, but then I realized I have Script Lab.
I was playing around in Script Lab and it seems to be a bit more powerful than Office Scripts. Then I realized something incredible: it's possible to import and use pyodide in Script Lab. I was able to load it up and print a python command to the console. For those that aren't familiar, pyodide is the full scientific python stack compiled to web assembly. I know from playing around at Starboard.gg that python functions/objects can be registered to javascript and vice versa. So this got me thinking, is there any technical hurdle to an add-in that contains a full pyodide REPL that interacts with Excel? Anybody here interested in getting an open-source project started?
View all comments
Show parent comment
1
u/sneakpeekbot Dec 01 '22
Here's a sneak peek of /r/adventofcode using the top posts of the year!
#1: [2021 Day 13] Folding with a folding phone | 46 comments
#2: [2021 Day 7 (Part 2)] I wrote a paper on today's problem. Enjoy! | 185 comments
#3: Finishing part 2 in AOC | 61 comments
I'm a bot, beep boop | Downvote to remove | Contact | Info | Opt-out | GitHub