GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - b3b/pythonhere: Run Python in a remote Kivy app from Jupyter

BranchesTags
Open more actions menu

Latest commit

 

History

124 Commits
124 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
docs
docs
 
 
examples
examples
 
 
pythonhere
pythonhere
 
 
recipes
recipes
 
 
scripts/release
scripts/release
 
 
tests
tests
 
 
.coveragerc
.coveragerc
 
 
.dockerignore
.dockerignore
 
 
.git-blame-ignore-revs
.git-blame-ignore-revs
 
 
.gitignore
.gitignore
 
 
.python-version
.python-version
 
 
CHANGELOG.rst
CHANGELOG.rst
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.rst
README.rst
 
 
buildozer.spec
buildozer.spec
 
 
docker-compose.yml.tmpl
docker-compose.yml.tmpl
 
 
p4a_hook.py
p4a_hook.py
 
 
pyproject.toml
pyproject.toml
 
 
run_tests.sh
run_tests.sh
 
 
setup.py
setup.py
 
 
uv.lock
uv.lock
 
 

Repository files navigation

PythonHere

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

Coding agents

PythonHere includes agent skills for working with the live app through the there command-line interface. See Coding agent skills for skill setup and practical examples.

Build Android app

To build with Buildozer, run in the source directory:

buildozer android debug

Related resources

  • herethere : Library for interactive code execution, based on AsyncSSH
  • AsyncSSH : Asynchronous SSH for Python
  • Buildozer : Tool used to build the Android APK.
  • python-for-android : Build toolchain used by Buildozer to package Python applications for Android.

About

Run Python in a remote Kivy app from Jupyter

herethere.me/pythonhere

Topics

androidapkipythonjupyterkivyp4apythonremotessh

Resources

Readme
MIT license
Activity

Stars

7 stars

Watchers

2 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.