镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

show progress bar in %%bigquery magics #389

Closed

Description

@tswast

Is your feature request related to a problem? Please describe.

When running the %%bigquery magics, there is no indication of progress.

Describe the solution you'd like

Show a progress bar using tqdm or tqdm_notebook.

Describe alternatives you've considered

N/A

Additional context

tqdm_notebook is ideal, as it uses the ability to embed HTML for a nicer-looking progress bar, but this is not always available. tqdm should be the default, but perhaps overridable via the google.cloud.bigquery.magics.context settings.

Activity

  1. added
    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
    and removed
    api: bigqueryIssues related to the googleapis/python-bigquery API.
    on Nov 16, 2020
  2. tswast commented on Nov 16, 2020

    @tswast
    ContributorAuthor

    This may be as simple as setting progress_bar_type="tqdm" here:

    bqstorage_client=bqstorage_client
    and here:
    result = query_job.to_dataframe(bqstorage_client=bqstorage_client)

    but ideally we would want the ability to change to tqdm_notebook when explicitly requested or maybe even if we can detect that we are in a supported environment

  3. tswast commented on Nov 16, 2020

    @tswast
    ContributorAuthor

    Follow-up to #343 which added the progress bar for waiting for the query to finish.

  4. HemangChothani commented on Nov 19, 2020

    @HemangChothani
    Contributor
    • Can we use get_ipython().__class__ to detect terminal or any other notebooks and set the progress_bar_type accordingly?

    • Can we include progress_bar_type parameter in to the magic_arguments and set default to 'tqdm'?

  5. tswast commented on Nov 19, 2020

    @tswast
    ContributorAuthor

    Can we include progress_bar_type parameter in to the magic_arguments and set default to 'tqdm'?

    Let's start with this. Plus, let's add progress_bar_type to the global context object so that the default can be changed by the user.

    Can we use get_ipython().class to detect terminal or any other notebooks and set the progress_bar_type accordingly?

    Let's file a separate issue for that. I don't want to get too magic in our magics. :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions