◐ Shell
clean mode source ↗

pythonhere

Project description

Status Latest version on PyPi Docker Image Version (latest by date) Supported Python versions CI Status Code coverage Status

PythonHere lets you run Python code from a local Jupyter notebook inside a remote Kivy app.

PythonHere has two parts:

  • Here is the remote/server side. It runs a Python environment with a Kivy GUI, for example on Android, Raspberry Pi, or another machine.

  • %there is the local/client side. It is a Jupyter magic command for running code interactively in the remote PythonHere environment.

This makes PythonHere useful as a live Python/Kivy playground, and as a way to inspect or control a Python app running remotely.

Project documentation: https://herethere.me/pythonhere

Project description

Install the Android app

Install PythonHere with Obtainium to receive updates from GitHub Releases.

Ready-to-use PythonHere APKs are available from the GitHub Releases page.

For APK provenance and signing checks, see Android APK verification. For a list of Python packages included in the Android build, see buildozer.spec.

Start a local Jupyter environment with Docker

The Docker image is based on Jupyter Docker Stacks and includes PythonHere with usage examples.

Example command to start the Docker container:

docker run \
       --rm \
       -p 8888:8888 \
       --user root \
       -e CHOWN_EXTRA=/home/jovyan/work \
       -e CHOWN_EXTRA_OPTS='-R' \
       -v "$(pwd)/work":/home/jovyan/work \
       herethere/pythonhere:latest

The command exposes the Jupyter server on host port 8888. Jupyter logs are printed in the terminal and include a URL such as http://127.0.0.1:8888/?token=.... Open this URL in a browser to use the local Jupyter environment.

Files in /home/jovyan/work inside the container are stored in the local work directory.

Run a local Jupyter environment without Docker

Commands to run locally:

pip install pythonhere jupyter
jupyter notebook

Build Android app

To build with Buildozer, run in the source directory:

buildozer android debug

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

Filter files by name, interpreter, ABI, and platform.

If you're not sure about the file name format, learn more about wheel file names.

Copy a direct link to the current filters

File details

Details for the file pythonhere-0.2.2.tar.gz.

File metadata

  • Download URL: pythonhere-0.2.2.tar.gz
  • Upload date:
  • Size: 66.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for pythonhere-0.2.2.tar.gz
Algorithm Hash digest
SHA256 d2844c4906816ed049f18338127a2dbe7d1bb8b2ba0e2ddd01a3e17b5768ceba
MD5 d6b903a02c92f02a302f5ec5b59b7330
BLAKE2b-256 886357d79c01f12023801bfa580bf380bd397f13c078006025a5f4a7d8ec4b35

See more details on using hashes here.

File details

Details for the file pythonhere-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: pythonhere-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 70.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for pythonhere-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 593a1b5b8d576272292cc4139c50a4cde66c3afadfd0191d7a035404f6e62e95
MD5 ce6c7196f146f64606747cd85740f6df
BLAKE2b-256 179452b4bc5bec6c5b0602db1e3d86f0c5e49f5bc3ec7447bc6407724e05f9db

See more details on using hashes here.