Skip to content

Commit

Permalink
Merge pull request #43 from Marika-K/urltest
Browse files Browse the repository at this point in the history
intro_to_python: update url path
  • Loading branch information
Marika-K authored Nov 20, 2024
2 parents 3aa698c + a268ade commit 6544511
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 6544511

Please sign in to comment.