Skip to content

Create notebook-cost estimator tool - #12

Open
emmarogge wants to merge 8 commits into
mainfrom
emmarogge/notebook_cost_estimator
Open

Create notebook-cost estimator tool#12
emmarogge wants to merge 8 commits into
mainfrom
emmarogge/notebook_cost_estimator

Conversation

@emmarogge

Copy link
Copy Markdown
Contributor

Create a tool that enables users to estimate the cost of running their own Jupyter notebooks in their Workbench workspaces.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a Jupyter notebook tool intended to help users estimate the approximate GCP cost of running Jupyter notebooks inside Verily Workbench (compute + data/storage + optional workspace-resource discovery via wb CLI).

Changes:

  • Introduces a new cost_estimator.ipynb notebook with ipywidgets-driven inputs and cost calculations.
  • Adds logic to estimate storage/query costs for GCS and BigQuery resources.
  • Adds workspace resource discovery and sizing helpers via wb CLI commands.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread notebook_cost_estimator/cost_estimator.ipynb
Comment thread notebook_cost_estimator/cost_estimator.ipynb Outdated
Comment on lines +196 to +200
"    elif resource_type == 'mixed':\n",
"        # Combination of storage and BigQuery\n",
"        gcs_storage = storage_price_per_gb_hour * data_gb * runtime_hrs\n",
"        bq_queries = (processed_gb / 1000) * bq_query_price_per_tb * queries\n",
"        storage_cost = gcs_storage + bq_queries\n",

Copilot AI Feb 12, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the mixed branch, query costs are added into storage_cost and query_cost remains 0, but downstream code expects query costs in query_cost (it prints them only if query_cost > 0). Return the mixed query component via query_cost and keep storage in storage_cost so totals/breakdowns are correct.

Copilot uses AI. Check for mistakes.
Comment thread notebook_cost_estimator/cost_estimator.ipynb Outdated
Comment thread notebook_cost_estimator/cost_estimator.ipynb Outdated
Comment thread notebook_cost_estimator/cost_estimator.ipynb Outdated
Comment thread notebook_cost_estimator/cost_estimator.ipynb Outdated
Comment thread notebook_cost_estimator/cost_estimator.ipynb Outdated
Comment thread notebook_cost_estimator/cost_estimator.ipynb Outdated
Comment thread notebook_cost_estimator/cost_estimator.ipynb Outdated
emmarogge and others added 5 commits April 28, 2026 09:37
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants