Skip to content
This repository was archived by the owner on Mar 13, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions docs/howto/authentication.rst
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,11 @@ credentials are not found.

credentials = pydata_google_auth.get_user_credentials(
SCOPES,
# Set auth_local_webserver to True to have a slightly more convienient
# authorization flow. Note, this doesn't work if you're running from a
# notebook on a remote sever, such as over SSH or with Google Colab.
# Note, this doesn't work if you're running from a notebook on a
# remote sever, such as over SSH or with Google Colab. In those cases,
# install the gcloud command line interface and authenticate with the
# `gcloud auth application-default login` command an the `--no-browser`
Comment thread
tswast marked this conversation as resolved.
Outdated
# option.
auth_local_webserver=True,
)

Expand Down
2 changes: 1 addition & 1 deletion pandas_gbq/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@


def get_credentials(
private_key=None, project_id=None, reauth=False, auth_local_webserver=False
private_key=None, project_id=None, reauth=False, auth_local_webserver=True
):
import pydata_google_auth

Expand Down
10 changes: 5 additions & 5 deletions pandas_gbq/gbq.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def __init__(
project_id,
reauth=False,
private_key=None,
auth_local_webserver=False,
auth_local_webserver=True,
dialect="standard",
location=None,
credentials=None,
Expand Down Expand Up @@ -722,7 +722,7 @@ def read_gbq(
index_col=None,
col_order=None,
reauth=False,
auth_local_webserver=False,
auth_local_webserver=True,
dialect=None,
location=None,
configuration=None,
Expand Down Expand Up @@ -762,7 +762,7 @@ def read_gbq(
reauth : boolean, default False
Force Google BigQuery to re-authenticate the user. This is useful
if multiple accounts are used.
auth_local_webserver : bool, default False
auth_local_webserver : bool, default True
Use the `local webserver flow
<https://googleapis.dev/python/google-auth-oauthlib/latest/reference/google_auth_oauthlib.flow.html#google_auth_oauthlib.flow.InstalledAppFlow.run_local_server>`_
instead of the `console flow
Expand Down Expand Up @@ -959,7 +959,7 @@ def to_gbq(
chunksize=None,
reauth=False,
if_exists="fail",
auth_local_webserver=False,
auth_local_webserver=True,
table_schema=None,
location=None,
progress_bar=True,
Expand Down Expand Up @@ -1005,7 +1005,7 @@ def to_gbq(
If table exists, drop it, recreate it, and insert data.
``'append'``
If table exists, insert data. Create if does not exist.
auth_local_webserver : bool, default False
auth_local_webserver : bool, default True
Use the `local webserver flow
<https://googleapis.dev/python/google-auth-oauthlib/latest/reference/google_auth_oauthlib.flow.html#google_auth_oauthlib.flow.InstalledAppFlow.run_local_server>`_
instead of the `console flow
Expand Down