Utils
            utils
#
    
            EnvironmentType
#
    
              Bases: str, enum.Enum
Enumeration of different Python execution environments.
Attributes:
| Name | Type | Description | 
|---|---|---|
JUPYTER_NOTEBOOK | 
            
                  str
             | 
            
               Jupyter Notebook or Jupyter Lab.  | 
          
JUPYTER_QTCONSOLE | 
            
                  str
             | 
            
               Jupyter QtConsole.  | 
          
GOOGLE_COLAB | 
            
                  str
             | 
            
               Google Colaboratory (Cloud-based Jupyter).  | 
          
VSCODE_NOTEBOOK | 
            
                  str
             | 
            
               Jupyter Kernel running inside VSCode.  | 
          
IPYTHON_TERMINAL | 
            
                  str
             | 
            
               IPython interactive shell in a terminal.  | 
          
STANDARD_PYTHON | 
            
                  str
             | 
            
               Standard Python interpreter (script or REPL).  | 
          
Methods:
| Name | Description | 
|---|---|
detect | 
              
                 Detect the current Python execution environment.  | 
            
            detect
  
      classmethod
  
#
detect() -> imgtools.vizualize.utils.EnvironmentType
Detect the current Python execution environment.
Returns:
| Type | Description | 
|---|---|
                  imgtools.vizualize.utils.EnvironmentType
             | 
            
               The detected environment type.  |