Vispy is a high-performance interactive 2D/3D data visualization
library. Vispy leverages the computational power of modern Graphics
Processing Units (GPUs) through the OpenGL library to display very
For more information, see http://vispy.org.
Convenience function for setting the logging level
The verbosity of messages to print. If a str, it can be either DEBUG,
INFO, WARNING, ERROR, or CRITICAL. Note that these are for
convenience and are equivalent to passing in logging.DEBUG, etc.
For bool, True is the same as ‘INFO’, False is the same as ‘WARNING’.
String to match. Only those messages that both contain a substring
that regexp matches 'match' (and the verbose level) will be
If True, return the old verbosity level and old match.
If verbose=='debug', then the vispy method emitting the log
message will be prepended to each log message, which is useful for
debugging. If verbose=='debug' or match is not None, then a
small performance overhead is added. Thus it is suggested to only use
these options when performance is not crucial.
match is not None
Get relevant system and debugging information
Filename to dump info to. Use None to simply print.
If True, overwrite file (if it exists).
The system information as a string.
Proxy function to delay .testing import
Set the usage options for vispy
Specify what app backend and GL backend to use.
‘PyQt4’: use Qt widget toolkit via PyQt4.
‘PyQt5’: use Qt widget toolkit via PyQt5.
‘PySide’: use Qt widget toolkit via PySide.
‘PySide2’: use Qt widget toolkit via PySide2.
‘PySide6’: use Qt widget toolkit via PySide6.
‘PyGlet’: use Pyglet backend.
‘Glfw’: use Glfw backend (successor of Glut). Widely available
‘SDL2’: use SDL v2 backend.
‘osmesa’: Use OSMesa backend
‘ipynb_vnc’: render in a Jupyter notebook via a VNC approach
‘gl2’: use Vispy’s desktop OpenGL API.
‘pyopengl2’: use PyOpenGL’s desktop OpenGL API. Mostly for
‘es2’: (TO COME) use real OpenGL ES 2.0 on Windows via Angle.
Availability of ES 2.0 is larger for Windows, since it relies
‘gl+’: use the full OpenGL functionality available on
your system (via PyOpenGL).
If the app option is given, vispy.app.use_app() is called. If
the gl option is given, vispy.gloo.use_gl() is called.
If an app backend name is provided, and that backend could not be
loaded, an error is raised.
If no backend name is provided, Vispy will first check if the GUI
toolkit corresponding to each backend is already imported, and try
that backend first. If this is unsuccessful, it will try the
‘default_backend’ provided in the vispy config. If still not
succesful, it will try each backend in a predetermined order.