Setting up GTK+3 is fairly simple and straightforward. There are quite a few ways to install GTK+3 depending on your OS version and environment.
We encourage our readers refer to the link: https://python-gtk-3-tutorial.readthedocs.io/en/latest/install.html for the latest updates and information on installation.
At the time of writing this book, the official website advises users to install GTK+3 through JHBuild. However, users have experienced a compatibility issue with JHBuild with the macOS El Capitan.
We recommend macOS users to use the package manager brew to install GTK+3.
GTK+3 can be installed simply if you have brew installed in your macOS:
#Installing the gtk3 package brew install gtk3 #Installing PyGObject brew install pygobject3
For Linux systems such as Ubuntu, GTK+3 is installed by default. For sophisticated and advanced users who prefer a more customized approach to installing GTK+3, we encourage referring their website to obtain the most recently updated information.
We have observed that GTK+3 visualization is not as compatible with IPython Notebook. We encourage you to run the code on the Terminal for best results.