This is so weird. I built a working "python within excel" a few years back.
(it also did sql and matlab&r remotely)
Abandoned now: https://alphawolfxl.com/
I abandoned this when some people I asked to beta test it said "their company wouldn't pay for it" and gave me the impression I'd wasted my time....
....Not sure how to feel about this.....