Module Expr Str Import alias Import alias FunctionDef arguments args NameParam NameParam defaults NameLoad NameLoad body Expr Str If BoolOpAnd CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad body Raise Call NameLoad Str If CompareEq NameLoad Str body Assign NameStore Str Assign NameStore Str If CompareEq NameLoad Str body ImportFrom alias Expr Call NameLoad If CompareIsNot NameLoad NameLoad body Raise Call NameLoad Str If NameLoad body Import alias ImportFrom alias Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad If NameLoad body Import alias Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad kwarg body Expr Str Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListComp IfExp CompareIs NameLoad NameLoad Str NameLoad comprehension NameStore NameLoad Assign NameStore ListComp IfExp Call NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr Str NameLoad comprehension NameStore NameLoad Assign NameStore Call NameLoad NameLoad If BoolOpAnd UnaryOpNot NameLoad AttributeLoad NameLoad attr body Print SubscriptLoad NameLoad Index Num Print SubscriptLoad NameLoad Index Num Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If CompareIn Str AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr body Raise Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad orelse Raise Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore BinOpAdd NameLoad TupleLoad AttributeLoad NameLoad attr Return NameLoad decorator_list
N/A N/A 
Some wrappers to avoid circular imports, or make certain calls easier.

The idea of a 'global' vispy.use function is that although vispy.app
and vispy.gloo.gl can be used independently, they are not complely
independent for some configureation. E.g. when using real ES 2.0,
the app backend should use EGL and not a desktop OpenGL context. Also,
we probably want it to be easy to configure vispy to use the ipython
notebook backend, which requires specifc config of both app and gl.

This module does not have to be aware of the available app and gl
backends, but it should be(come) aware of (in)compatibilities between
them.
 N/A subprocess N/A inspect use N/A N/A app gl N/A None None N/A N/A  Set the usage options for vispy

    Specify what app backend and GL backend to use.

    Parameters
    ----------
    app : str
        The app backend to use (case insensitive). Standard backends:
            * 'PyQt4': use Qt widget toolkit via PyQt4.
            * 'PyQt5': use Qt widget toolkit via PyQt5.
            * 'PySide': use Qt widget toolkit via PySide.
            * 'PyGlet': use Pyglet backend.
            * 'Glfw': use Glfw backend (successor of Glut). Widely available
              on Linux.
            * 'SDL2': use SDL v2 backend.
            * 'osmesa': Use OSMesa backend
        Additional backends:
            * 'ipynb_vnc': render in the IPython notebook via a VNC approach
              (experimental)
    gl : str
        The gl backend to use (case insensitive). Options are:
            * 'gl2': use Vispy's desktop OpenGL API.
            * 'pyopengl2': use PyOpenGL's desktop OpenGL API. Mostly for
              testing.
            * '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
              on DirectX.
            * 'gl+': use the full OpenGL functionality available on
              your system (via PyOpenGL).

    Notes
    -----
    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.

    See Also
    --------
    vispy.app.use_app
    vispy.gloo.gl.use_gl
     N/A N/A N/A app None N/A gl None N/A N/A N/A TypeError Must specify at least one of "app" or "gl". N/A N/A app ipynb_webgl N/A N/A app headless N/A gl webgl N/A N/A app osmesa N/A vispy.util.osmesa_gl fix_osmesa_gl_lib N/A N/A fix_osmesa_gl_lib N/A N/A gl None N/A N/A N/A ValueError Do not specify gl when using osmesa N/A gl N/A N/A vispy.gloo vispy config N/A N/A config N/A gl_backend gl N/A N/A N/A N/A N/A vispy gloo gl use_gl gl N/A app N/A N/A vispy.app N/A N/A N/A N/A vispy app use_app app N/A run_subprocess N/A N/A command return_code N/A False kwargs N/A N/A Run command using subprocess.Popen

    Run command and wait for command to complete. If the return code was zero
    then return, otherwise raise CalledProcessError.
    By default, this will also add stdout= and stderr=subproces.PIPE
    to the call to Popen to suppress printing to the terminal.

    Parameters
    ----------
    command : list of str
        Command to run as subprocess (see subprocess.Popen documentation).
    return_code : bool
        If True, the returncode will be returned, and no error checking
        will be performed (so this function should always return without
        error).
    **kwargs : dict
        Additional kwargs to pass to ``subprocess.Popen``.

    Returns
    -------
    stdout : str
        Stdout returned by the process.
    stderr : str
        Stderr returned by the process.
    code : int
        The command exit code. Only returned if ``return_code`` is True.
     N/A use_kwargs N/A dict stderr N/A subprocess PIPE stdout N/A subprocess PIPE N/A N/A N/A use_kwargs update kwargs N/A p N/A N/A subprocess Popen command use_kwargs N/A output N/A N/A p communicate N/A output N/A N/A N/A s None s N/A s output N/A output N/A N/A N/A isinstance s bytes N/A N/A s decode utf-8 s N/A s output N/A output N/A tuple output N/A N/A N/A return_code N/A p returncode N/A N/A N/A output N/A 0 N/A N/A output N/A 1 N/A err_fun N/A N/A subprocess CalledProcessError __init__ N/A N/A output N/A N/A N/A inspect getargspec err_fun args N/A N/A N/A N/A subprocess CalledProcessError N/A p returncode command output N/A N/A N/A N/A subprocess CalledProcessError N/A p returncode command N/A return_code N/A N/A output N/A output N/A N/A p returncode N/A output N/A