Select your language

Kivy is a multi platform GUI that enables you to create visualizations easily. Kivy comes with a lot of documentation that you can work with fluently after a while.

Install Kivy

Make sure to install Python 3 in the last version that is supported by Kivy. Otherwise will your install fail. Also you will need to work with Python 3 if you want to use Matplotlib in combination with Kivy to avoid a lot of program crashes.

You will have to install some dependencies:

sudo apt install libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev \
   pkg-config libgl1-mesa-dev libgles2-mesa-dev \
   python3-setuptools libgstreamer1.0-dev git-core \
   gstreamer1.0-plugins-{bad,base,good,ugly} \
   gstreamer1.0-{omx,alsa} python3-dev libmtdev-dev \
   xclip xsel libjpeg-dev

Finally Kivy will be installed in a one liner:

python3 -m pip install kivy

After the install this minimal Hello World App will prove your success:

If you are using the Raspberry Pi touch screen you will have to configure accordingly.

Open a terminal and enter the command

sudo nano ~/.kivy/config.ini

then scroll down until you find the section [Input].

Add or modify the follwoing lines:

mouse = mouse

mtdev_%(name)s = probesysfs,provider=mtdev

hid_%(name)s = probesysfs,provider=hidinput 

Now you can start the example.


Start Kivy with Cronjob

If you start Kivy with a Cronjob but you cannot see the window you will have to add the following line in your Cronjob


Run Kivy in full screen and without menu bar

The config file gives you conrtol over the general behavior of Kivy. Navigate to


Instead of  user_name enter your user name. Often it is pi.

Then open config.ini

Look for fullscreen and borderless. Set the values to 1 and then run your app.