PyBox / Python on Primebook

A real Python IDE for your Primebook.

Primebook is an Android laptop, and PyBox is built for Android. Python 3.14.8 runs on the device, offline, with a keyboard, a trackpad and windows, the way a laptop should.

Why Primebook needs a proper Python setup

An Android laptop gives you a big screen and a keyboard, but most Python apps for Android were made for a phone: a console, a small editor, no windows. Students and developers on a Primebook want the desktop workflow: a language server in the editor, Git, notebooks, and GUI apps that open in real windows.

  • Made for a laptop screenThe file tree, tabs and editor sit side by side, with a status bar and a tool rail for Git, tests, problems and the terminal.
  • Keyboard firstCtrl+Shift+F finds in files, F1 shows the shortcut list, and the on-screen keyboard can hide when a hardware keyboard is attached.
  • Trackpad and mouseRest the pointer on a symbol for hover documentation. On the X11 desktop, the pointer works like it does on a computer, with right-click and natural scrolling.
  • Windows, not just a consoleTkinter, Kivy and pygame open in real windows on an X11 desktop with a window manager, a panel and a taskbar, and OpenGL runs up to GL 4.3 on the GPU.
  • OfflinePython runs locally. You need a connection only for pip, first-run JupyterLab and optional language servers.
PyBox on a laptop-sized Android screen: file tree, tabs, editor and status bar

What you can do on a Primebook

Write and check Python

Ruff diagnostics and quick fixes are built in. Choose ty, Jedi or the Python LSP Server for completions, signatures and go to definition.

Use Git and GitHub

Stage, commit, branch, push, resolve conflicts and clone repositories from the tool rail.

Run notebooks

JupyterLab runs locally with Matplotlib and ipywidgets, plus 30 notebook templates.

Install the scientific stack

NumPy, pandas, SciPy, scikit-learn, PyTorch, TensorFlow, ONNX Runtime and OpenCV come as prebuilt Android wheels.

Build GUI apps

Tkinter, Kivy and pygame, with touch, mouse and keyboard mapped to the desktop.

Use the hardware

OpenCV reads the camera, and PyAudio and sounddevice use Android audio.

Set up in five minutes

  1. Install PyBox from Google Play and let it unpack its runtime once.
  2. Grant storage access so projects live in a normal folder.
  3. Tap New Project and pick a starter, such as Python Basics Tour or Tkinter Calculator.
  4. Press Run. GUI scripts open on the X11 desktop.
  5. Add packages to requirements.txt and tap Sync Project.

Tip: in Settings, GUI display, set touch mode to Touchpad if you prefer a cursor you move with the trackpad.

The PyBox X11 desktop with windows, a panel and a taskbar

For students and classrooms

A Primebook is often a student laptop. PyBox gives a class the same Python environment on every device, with no installs on a lab machine and no accounts. 100+ starter projects and 30 notebook templates mean every lesson starts with something that runs, and projects are normal folders that students can hand in as a ZIP.

Read the guide Coding on a Primebook: a Python setup guide, or the page on tablets and Chromebooks.

Questions

Does PyBox work on Primebook?

Yes. Primebook is an Android laptop and PyBox is an Android app, so it installs from Google Play and runs with a keyboard, a trackpad and windows.

Can I run Tkinter and pygame on a Primebook?

Yes. PyBox runs an X11 server with a window manager, so Tkinter, Kivy and pygame windows open on its desktop.

Is PyBox free to try on Primebook?

Install it from Google Play and check the listing for current pricing.

Do I need internet to code in Python on a Primebook?

No. Python runs locally. You need internet only to install packages.

Try PyBox on your device.