# Recover OpenGL Informations from pvpython

**URL:** <https://discourse.paraview.org/t/recover-opengl-informations-from-pvpython/1536>\
**Category:** Tips and Tricks\
**Created:** [March 27, 2019, 10:18am UTC](https://discourse.paraview.org/t/recover-opengl-informations-from-pvpython/1536 "2019-03-27T10:18:22Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)\
**Post date:** [March 27, 2019, 10:18am UTC](https://discourse.paraview.org/t/recover-opengl-informations-from-pvpython/1536/1 "2019-03-27T10:18:22Z")

</div>

The OpenGL informations, visible in Help → About dialog, are not easily recoverable in pvpython yet.

Here is how to do it.

On ParaView 5.6 and earlier versions:

```
import vtk as VTK
openGLInfo=VTK.vtkPVOpenGLInformation() 
session=servermanager.vtkSMProxyManager.GetProxyManager().GetActiveSession()
session.GatherInformation(session.CLIENT, openGLInfo, 0)
openGLInfo.GetVendor()
openGLInfo.GetVersion()
openGLInfo.GetRenderer()
openGLInfo.GetCapabilities()

```

On ParaView 5.7.X :

```
openGLInfo=servermanager.vtkPVServerImplementationRendering.vtkPVClientServerCoreRendering.vtkPVOpenGLInformation()
session=servermanager.vtkSMProxyManager.GetProxyManager().GetActiveSession()
session.GatherInformation(session.CLIENT, openGLInfo, 0)
openGLInfo.GetVendor()
openGLInfo.GetVersion()
openGLInfo.GetRenderer()
openGLInfo.GetCapabilities()

```

On ParaView 5.8.0 and newer

```
openGLInfo = GetOpenGLInformation()
openGLInfo.GetVendor()
openGLInfo.GetVersion()
openGLInfo.GetRenderer()
openGLInfo.GetCapabilities()
```

---

_[View the full topic](https://discourse.paraview.org/t/recover-opengl-informations-from-pvpython/1536)._
