parameters: (self)
return_statement: return info
docstring: Get information about the app.
docstring_summary: Get information about the app.
docstring_tokens: Get information about the app .
function: def _get_app_info(self):
          """Get information about the app.
          """
  
          info = dict()
          info['core_data'] = core_data = self.core_data
          info['extensions'] = extensions = self._get_extensions(core_data)
  
          info['local_extensions'] = self._get_local_extensions()
          info['linked_packages'] = self._get_linked_packages()
          info['app_extensions'] = app = []
          info['sys_extensions'] = sys = []
          for (name, data) in extensions.items():
              data['is_local'] = name in info['local_extensions']
              if data['location'] == 'app':
                  app.append(name)
              else:
                  sys.append(name)
  
          info['uninstalled_core'] = self._get_uninstalled_core_extensions()
  
          info['static_data'] = _get_static_data(self.app_dir)
          app_data = info['static_data'] or core_data
          info['version'] = app_data['jupyterlab']['version']
          info['staticUrl'] = app_data['jupyterlab'].get('staticUrl', '')
  
          info['sys_dir'] = self.sys_dir
          info['app_dir'] = self.app_dir
  
          info['core_extensions'] = _get_core_extensions(self.core_data)
  
          info['federated_extensions'] = get_federated_extensions(self.labextensions_path)
          info['shadowed_exts'] = [ext for ext in info['extensions'] if ext in info['federated_extensions']]
          return info
function_tokens: def _get_app_info ( self ) : info = dict ( ) info [ 'core_data' ] = core_data = self . core_data info [ 'extensions' ] = extensions = self . _get_extensions ( core_data ) info [ 'local_extensions' ] = self . _get_local_extensions ( ) info [ 'linked_packages' ] = self . _get_linked_packages ( ) info [ 'app_extensions' ] = app = [ ] info [ 'sys_extensions' ] = sys = [ ] for ( name , data ) in extensions . items ( ) : data [ 'is_local' ] = name in info [ 'local_extensions' ] if data [ 'location' ] == 'app' : app . append ( name ) else : sys . append ( name ) info [ 'uninstalled_core' ] = self . _get_uninstalled_core_extensions ( ) info [ 'static_data' ] = _get_static_data ( self . app_dir ) app_data = info [ 'static_data' ] or core_data info [ 'version' ] = app_data [ 'jupyterlab' ] [ 'version' ] info [ 'staticUrl' ] = app_data [ 'jupyterlab' ] . get ( 'staticUrl' , '' ) info [ 'sys_dir' ] = self . sys_dir info [ 'app_dir' ] = self . app_dir info [ 'core_extensions' ] = _get_core_extensions ( self . core_data ) info [ 'federated_extensions' ] = get_federated_extensions ( self . labextensions_path ) info [ 'shadowed_exts' ] = [ ext for ext in info [ 'extensions' ] if ext in info [ 'federated_extensions' ] ] return info