Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 10, 2025

Colab users hit missing pyomo when running the workshop notebooks.

  • Colab bootstrap: Added a first-code-cell snippet to every notebook that installs Pyomo when running on Colab.
  • Regression check: Added a test ensuring each notebook retains the Colab Pyomo install cell.

Example bootstrap cell:

import importlib.util, subprocess, sys

if "google.colab" in sys.modules and importlib.util.find_spec("pyomo") is None:
    subprocess.check_call([sys.executable, "-m", "pip", "install", "pyomo"])
Original prompt

Address #14


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI self-assigned this Dec 10, 2025
Copilot AI changed the title [WIP] Address issue number 14 Add Colab-aware Pyomo bootstrap across notebooks Dec 10, 2025
Copilot AI requested a review from bernalde December 10, 2025 00:43
@bernalde
Copy link
Member

Some solvers will also be unavailable, also, make sure to run these notebooks in Colab and pre-load the results

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