PyBox / Blog / Guides

Coding on an Android Tablet with a Keyboard

A tablet plus a keyboard case is a light laptop for Python. Here is the setup that works.

Coding on an Android Tablet with a Keyboard: the PyBox screen this guide uses
PyBox is the Python IDE I build. The steps below use it, and the ideas carry over to any Android coding app. Get it on Google Play.

Hardware

  • A tablet on Android 8.0 or newer, with 4 GB of RAM or more if you can.
  • A keyboard case with a trackpad, or a Bluetooth keyboard and a stand.
  • A mouse, if your tablet supports one.

Software layout

On a tablet, PyBox shows a side rail with the file tree beside the editor, and panels for Git, tests and problems. Use the terminal and notebooks alongside your code.

Shortcuts worth learning

  • Ctrl+Shift+F find in files.
  • F1 documentation for the symbol under the cursor.
  • Hover with a mouse for docs and diagnostics.

Run GUI apps and notebooks

Tkinter, Kivy and pygame open in real windows on the X11 desktop. JupyterLab runs on localhost with a touch layer. See Python GUI on Android and Jupyter on Android.

Compared with a Chromebook

A Chromebook gives you a Linux container. A tablet gives you a lighter device and the same app as your phone. Read Chromebook vs Android tablet.

Questions

Can I code on an Android tablet?

Yes. With a keyboard and an IDE such as PyBox you get a split layout, Git, tests and an X11 desktop on the tablet.

Which keyboard works best for coding on a tablet?

Any Bluetooth or USB keyboard with arrow keys and a Ctrl key. Cases with a trackpad make hover docs and selection easier.

Anshuman MishraBuilds PyBox at Vytros, a Python IDE for Android. About the developer.

Code Python on your phone.