More
Run Python: running Python code from answers
Run Python lets GlirOS run Python code from answers on your own device, in a sandbox: Python 3.14 with its standard library, no network and no access to your files. It is off until you turn it on in Settings > Tools > Run Python.
Turning it on
Turning it on asks first. GlirOS then fetches Python once (Pyodide 314.0.8, about 13 MB) from www.gliros.com, checks every file against its known checksum, and keeps it: the desktop app in its own folder on the PC, the web version in the browser's storage. The same section sets the memory for a run (256 MB, 512 MB or 1 GB; 512 MB suits most) and has Remove, which deletes the files and turns Run Python off. Pyodide is under the Mozilla Public License 2.0 and Python under the PSF License; Settings > About > Licences has the texts and where the source is.

Running a file
With Run Python on, every Python file in an answer has a Run button (▷). A run gets the chat's Python and data files from Files and versions, with that answer's own files on top. A test file (test_*.py), or a file with tests in it, runs its tests: unittest, or pytest-style test functions (GlirOS has a small stand-in for pytest's raises, approx, parametrize, skip, xfail and fixtures). Any other file runs as a program. The result shows under the code: what it printed, the test report, or the error with the line in your file. Run again, Copy and × are on its row. A run stops after 10 seconds, and every run starts fresh with an empty folder.
What it can't do
The sandbox has no network, threads or other programs, and no packages from PyPI (numpy, pandas and the like aren't there). Code that needs one says so instead of failing silently: «This code reaches for the network, which Run Python never allows».
Typed input works
A program that reads typed input with input() works: the first run says the code asks for typed input and shows a box, «What the code reads, one line each». Write the lines there and press Run with this input (or Ctrl+Enter), and the program reads them in order. Only the tests GlirOS runs by itself can't type input.
Tests checked by themselves
When an answer writes Python, GlirOS's code check also compiles it and runs its tests in the sandbox, before you see the result. A syntax error or a failed test goes back to the model, which fixes it in the same answer, and the answer's line says how it went: «✓ Python tests ran in the sandbox: 3 passed», or how many failed. GlirOS never runs a plain script by itself, only tests, and says tests passed only when they did. Ask for tests with the code («write a function and a unittest for it») to get the most from this.
This guide is the same text GlirOS itself uses to answer questions about GlirOS.