Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

intro_to_python: update url path #43

Merged
merged 2 commits into from
Nov 20, 2024
Merged
Changes from all commits
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
6 changes: 3 additions & 3 deletions intro_to_gurobipy/intro_to_gurobipy.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@
"import gurobipy as gp\n",
"from gurobipy import GRB\n",
"\n",
"url = \"https://raw.githubusercontent.com/Gurobi/modeling-examples/master/intro_to_gurobipy/data\"\n",
"url = \"https://raw.githubusercontent.com/Gurobi/modeling-examples/master/intro_to_gurobipy/data/glass4.mps.bz2\"\n",
"path_to_file, _ = urllib.request.urlretrieve(url, \"./glass4.mps.bz2\")\n",
"\n",
"# running notebook locally:\n",
Expand Down Expand Up @@ -800,7 +800,7 @@
"import gurobipy as gp\n",
"from gurobipy import GRB\n",
"\n",
"url = \"https://raw.githubusercontent.com/Gurobi/modeling-examples/master/intro_to_gurobipy/data\"\n",
"url = \"https://raw.githubusercontent.com/Gurobi/modeling-examples/master/intro_to_gurobipy/data/glass4.mps.bz2\"\n",
"path_to_file, _ = urllib.request.urlretrieve(url, \"./glass4.mps.bz2\")\n",
"\n",
"# running notebook locally:\n",
Expand Down Expand Up @@ -952,7 +952,7 @@
"from urllib.request import urlopen\n",
"import numpy as np\n",
"\n",
"url = \"https://raw.githubusercontent.com/Gurobi/modeling-examples/master/intro_to_gurobipy/intro_to_gurobipy/data/portfolio-example.json\"\n",
"url = \"https://raw.githubusercontent.com/Gurobi/modeling-examples/master/intro_to_gurobipy/data/portfolio-example.json\"\n",
"response = urlopen(url)\n",
"data = json.loads(response.read())\n",
"\n",
Expand Down