def _get_globals():
 from __main__ import __dict__ as namespace
 shell = namespace.get('__ipythonshell__')
 if ((shell is not None) and hasattr(shell, 'user_ns')):
  return shell.user_ns
 else:
  return namespace
 return namespace

def _get_globals ( ) : from __main__ import __dict__ as namespace shell = namespace . get ( '__ipythonshell__' ) if ( ( shell is not None ) and hasattr ( shell , 'user_ns' ) ) : return shell . user_ns else : return namespace return namespace
return current python interpreter globals namespace .