MCPcopy Index your code
hub / github.com/Kaggle/docker-python / set_tensorflow_credential

Method set_tensorflow_credential

patches/kaggle_secrets.py:108–112  ·  view source on GitHub ↗

Sets the credential for use by Tensorflow

(self, credential)

Source from the content-addressed store, hash-verified

106 subprocess.run(['gcloud', 'config', 'set', 'account', account])
107
108 def set_tensorflow_credential(self, credential):
109 """Sets the credential for use by Tensorflow"""
110
111 # Write to a local JSON credentials file
112 self._write_credentials_file(credential)
113
114 def get_bigquery_access_token(self) -> Tuple[str, Optional[datetime]]:
115 """Retrieves BigQuery access token information from the UserSecrets service.

Callers 1

test_fnMethod · 0.95

Calls 1

Tested by 1

test_fnMethod · 0.76