4 ms·
Run Python in the Browser Effortlessly
- ccbikai 2y agoRun Python programs in the browser easily using Pyodide and WebAssembly for seamless execution of code and packages
- alexmolas 2y agohow did they solved the problems with pypi in China?
- ccbikai 2y agoI used Cloudflare to set up a PyPI mirror service. https://kai.bi/post/cloudflare-pypi-mirror https://kai.bi/post/cloudflare-pypi-mirror
- mritchie712 2y agoChatGPT's "canvas mode" uses pyodide to execute python https://simonwillison.net/2024/Dec/10/chatgpt-canvas/#canvas-runs-python-via-pyodide https://simonwillison.net/2024/Dec/10/chatgpt-canvas/#canvas...
- david_draco 2y agoWake me up when it supports numpy&scipy.
- jncraton 2y agoPyodide supports numpy and scipy. https://pyodide.org/en/stable/usage/packages-in-pyodide.html https://pyodide.org/en/stable/usage/packages-in-pyodide.html
- ipsum2 2y agoFrom the article: > Many packages with C extensions have also been ported for use with Pyodide. These include common packages like regex, PyYAML, lxml, and scientific Python packages including NumPy, pandas, SciPy, Matplotlib, and scikit-learn
- deleted 2y ago[deleted]
- lmeyerov 2y agoWe evaluated the pyodide ecosystem for louie.ai last year and too much didn't work, eg, we couldn't get data in for arrow or parquet, which are table stakes for python data work My guess was 2025 would be more practical for these libs ... And behold: https://github.com/pyodide/pyodide/issues/2933 https://github.com/pyodide/pyodide/issues/2933 Very cool to see!
- jeffbee 2y agoIt used to be actually easy to run Python — and Perl, REXX, Tcl, Ruby, and a bunch of other languages — with WSH in MSIE. Those were, in that small way, good times.
- VyseofArcadia 2y ago> However, since MarkItDown is a Python program, it might be challenging for non-technical users to use. Am I alone in thinking it is perfectly acceptable to ask a non-technical user to open a command line and type something? It's not rocket science. You just follow simple directions. Click start, search for powershell, type this into the Window that pops up, hit enter. [0] If you can make boxed mac and cheese, you can type a command into a command prompt. It was not that long ago that even for Windows software you were expected to occasionally visit the DOS prompt (type d:\, type setup.exe was a pretty common pattern in instruction manuals). [0] Of course, the directions currently on the MarkItDown github page are pretty inadequate, but I'm talking about the general case.
- iforgot22 2y agoIn this case, the problem is more the prereqs. The user must first install Python and some packages, which already brings up the question of which version and which package manager. And in easier cases, if it's so easy, why not package it in a regular app/exe?
- VyseofArcadia 2y agoI will admit I forgot that Python is not installed by default on Windows.
- dspillett 2y ago> Am I alone in thinking it is perfectly acceptable to ask a non-technical user to open a command line and type something? I think it is perfectly acceptable t ask, but know that many will balk at the suggestion. It is a reason lot of people give for avoiding Linux, even though for many users CLI interaction need not be any more common there than under Windows these days. There is flip side to this though: we perhaps shouldn't train users to blindly run commands and code, given how easy to exploit such trust can be. Also, after running your “command line magic” there are too many out there that will blame you for anything that goes wrong with their PC for the next six months!
- TuringTest 2y ago
- deleted 2y ago[deleted]