Run code on a phone or tablet
Python, JavaScript, TypeScript, Ruby and Lua run right on your phone, tablet or in a web browser, with nothing to install and nothing connected. Go, Rust, C, C++ and Zig need a computer to build them once; after that they run on the phone too, and Shell always runs on a computer.
Python, JavaScript, TypeScript, Ruby and Lua
Any deviceFree
- Open a CodeBook and add a cell.
- Pick the language in the cell's toolbar, write the code, and run it.
Python has around 240 libraries built in, such as numpy, pandas, scipy and scikit-learn. Ruby and Lua have their standard library and no packages. Ruby and Lua are fetched once the first time you use them, then work offline.
Python libraries the phone doesn't have
Phone or tabletYour computer (Circuit)Paid plan
Libraries outside the built-in set, such as TensorFlow or PyTorch, need Python on a computer.
- Pair your computer through Circuit.
- Open the step's settings (Show Config in a CodeBook) and choose your computer, listed by its name, as the place it runs.
- Run it. The step runs on the computer, much faster, and the result shows on the phone.
Go, Rust, C, C++ and Zig
Phone or tabletYour computer (Circuit)Paid plan
- Write the step on the phone as usual.
- The first time you run it, and whenever you change it, it is built on your paired computer. Circuit installs the compiler there the first time.
- The built step comes back to the phone and runs there, from then on with nothing connected and offline.
A workflow someone shares with you arrives already built, so it runs on the phone straight away.
Shell commands
Phone or tabletYour computer (Circuit)Paid plan
Shell steps and terminals always run on a computer of your own. On a phone they run on your paired computer and show their output on the phone.
In the desktop app
Desktop app
Every language, including building the compiled ones and Shell, runs on the computer the desktop app is on, with no Circuit needed.
Related
- Languages, and where they run — the full picture, including what each language can and can't do
- Code node — writing a step in each language
- What works on each device
- Connect your phone or tablet to your computer