The Software Engineering workbench

Pyodide, /uploads, print, Run, Reset, and privacy.

The Software Engineering app is a Python editor that runs in WebAssembly (Pyodide). When the status line says Python is ready, you have the standard library. There is no pandas, NumPy, or extra install.

Goal

Know how Run, files, imports from /uploads, Reset, and downloads work.

Run code

Paste into the editor and press Ctrl+Enter (Windows/Linux) or Cmd+Enter (macOS). The console is stdout. Use print.

import sys

print("python", sys.version.split()[0])
print("hello from Nairobi")

Files live in /uploads

Click Add files and choose a .py, JSON, or CSV file. After that:

import os

print(os.listdir("/uploads"))

Readable paths: kiosk.py or /uploads/kiosk.py. /uploads is also on sys.path, so import kiosk works once that file is attached (or written in the script).

Writes become download chips

from pathlib import Path

Path("note.txt").write_text("Kisumu kiosk\n", encoding="utf-8")
print("wrote note.txt")
print(Path("note.txt").read_text(encoding="utf-8"))

After Run, click on the file chip. Nothing is uploaded to Swiftener’s servers.

Reset

Reset restores the starter snippet. It does not wipe uploaded files. Uploads persist after refresh.

Pitfall

This tab is not a laptop terminal. git, python3 -m venv, and pip install pytest will not run here. Use the standard library, and write files into /uploads.