I built a Python playground with Pyodide and Ace in ~100 lines of JavaScript

4 months ago 10

# # Write your Python code here! It should be Python3.12+ # *Everything* is happening in the browser (this is statically served). # --------------------------------------------------------------------------- # There is already a 'test.txt' file loaded, but you can upload more files by # using the file picker (or drag & drop) on the right panel. # --------------------------------------------------------------------------- # You can even install additional packages using micropip! # # import micropip # await micropip.install('orjson') # with open('test.txt') as f: data = f.read() print(data)

Read Entire Article