Prerequisites
Recursion Tree Visualiser has two main dependencies:- Graphviz - A system-level graph visualization library
- Python packages -
pydotandimageio(installed automatically)
Install graphviz
Install recursion-visualiser
Install from PyPI
The easiest way to install the package is from PyPI:This will automatically install the required Python dependencies:
pydot- Python interface to Graphviz’s Dot languageimageio- Library for reading and writing image data (used for GIF creation)
Alternative installation methods
Install from source
If you want to use the latest development version or contribute to the project:Docker installation
If you have Docker and docker-compose installed, you can run recursion-visualiser in a containerized environment:Troubleshooting
graphviz not found in PATH
graphviz not found in PATH
If you get an error about graphviz not being found, make sure you’ve added the graphviz bin directory to your system PATH.On Windows, you can add it programmatically:
Module 'visualiser' not found
Module 'visualiser' not found
If you get an import error, verify that:
- You’ve installed the package:
pip install recursion-visualiser - You’re using the correct Python environment
- The package was installed successfully:
pip show recursion-visualiser
GIF creation fails
GIF creation fails
If GIF generation fails, ensure:
- The
imageiopackage is installed:pip install imageio - You have write permissions in the output directory
- The frames directory can be created
Next steps
Quickstart
Create your first recursion tree visualization