PyBox / Blog / Machine learning

JupyterLab and marimo Notebooks on Android

PyBox runs both JupyterLab and marimo as real servers on the phone. You pick the kind when you make a notebook, then manage, convert and export them from one screen.

JupyterLab and marimo Notebooks on Android: the PyBox screen this guide uses
PyBox is the app I build. Get it on Google Play.

Two kinds of notebook

JupyterLabmarimo
File.ipynb, a JSON document.py, a normal Python file
CellsRun in the order you chooseRe-run when a value they use changes
Good forData analysis, teaching, long write-upsInteractive apps, sliders, forms, tidy diffs
Folder in PyBoxPyBox/JupyterLabPyBox/Marimo

Templates

There are 34 marimo and 30 JupyterLab templates. They are split into starter, practical and academic. I ran each one on an Android emulator before shipping it.

  • Practical: expense tracker, loan and EMI calculator, budget planner, grade calculator, CSV explorer, text analyzer, quiz app, regex tester, personal finance in pandas, data cleaning practice.
  • Academic: linear regression, the central limit theorem, Fourier series, a damped oscillator, Bayes' theorem, matrix transformations, gradient descent, sorting algorithms, linear algebra with NumPy, calculus with SymPy, numerical methods, hypothesis testing, reaction kinetics.

The notebook manager

Open Manage Notebooks from the sidebar. It lists the notebooks of each kind, and the actions on each one are:

  • Open, rename and delete.
  • Export to HTML, Markdown or a Python script, saved wherever you pick with the Android file picker.
  • Convert Jupyter to marimo, and marimo to Jupyter.
  • Run all cells, clear outputs, run as a script, and lint with marimo check.

Commands run in a progress sheet with their output, so you do not need the terminal.

Next

See TensorFlow, Keras and MediaPipe on Android for the machine learning side, or how to code on your phone.

Questions

Can I run Jupyter notebooks on Android?

Yes. PyBox runs JupyterLab on the phone and opens .ipynb files from its notebook list. Packages install the first time you need them.

Does PyBox support marimo?

Yes. marimo notebooks are plain Python files, saved in the PyBox/Marimo folder, and open in the marimo editor on the phone.

Can I convert between them?

Yes. The notebook manager converts a Jupyter notebook to marimo and a marimo notebook to .ipynb, and saves the result where you choose.

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

Code Python on your phone.