Microsoft recently open-sourced MarkItDown, a program converting Office files to Markdown, which quickly trended on GitHub. To aid non-technical users, the author proposed using WebAssembly to enable Python code running directly in the browser via Pyodide, a CPython port supporting Python syntax and popular packages like NumPy, pandas, and more. Utilizing a JavaScript ⟺ Python interface, users can seamlessly mix both languages with full access to Web APIs. Overcoming challenges like file transfer and PyPI limitations in China, the author successfully created a browser-based MarkItDown tool, demonstrating the promising future of WebAssembly in browsers. Try it out at “Office File to Markdown.”
https://kai.bi/post/run-python-programs-easily-in-the-browser