Python

All plugins

By Ajit Kumar

Version 1.2.0

Python for Acode Run Python 3.14 in the Acode editor on Android. Python runs on your device through Pyodide, so no server or Termux setup is needed. Features - Run Python files : open a .py file and tap the run button in the header - Interactive console : type Python after your program finishes; input() works too - Python packages : import numpy , pandas , matplotlib and many more are downloaded automatically the first time you use them - Install from PyPI with micropip - Plots and images : matplotlib figures and Pillow images are shown right in the console - pygame (experimental) : games draw to a canvas in the console - Copy output : console text can be selected and copied - Line wrap : toggle wrapping of long output lines from the header button - Progress indicator : a thin line under the header shows while Python is loading or your code is running Usage Open a Python file and tap the run button. The console shows your program's output, errors in red, and a prompt for input() . After the program finishes, you can keep typing Python in the console. Use the up and down arrows to browse previous commands and Ctrl+L to clear the console. Packages Packages built for Pyodide (numpy, pandas, scipy, matplotlib, Pillow and many more) load automatically when imported. They are downloaded the first time, so an internet connection is needed then. Pure Python packages from PyPI can be installed with micropip : Plots and images plt.show() displays matplotlib figures in the console, and any figures still open are shown when the program ends. Figures default to the width of the console and are rendered sharp on high-density screens. Pillow's Image.show() works too. pygame (experimental) pygame programs draw to a canvas in the console using Pyodide's SDL support. Ordinary game loops work as written: - The display runs your program on Acode's main page instead of the isolated worker, so it could access the app and its data. The plugin asks before doing this (you can choose not to be asked again); only allow it for code you trust. - Blocking loops like this need Android System WebView 137 or newer (JSPI support). On older WebViews, make the loop async with await asyncio.sleep(0) each frame. - Running again or closing the console stops the game. - If SDL cannot start, the program runs without a display and the console explains why. Limitations - Only the open file runs;…