Using the iPython Notebook
iPython Notebook, which is included in Anaconda
Python, simply type
ipython notebook in a terminal window. You
can create a new notebook by clicking on the
New icon (in the
upper right) and choosing one of the
Notebook options. Once
your new notebook starts, you can type standard Python commands or
Gurobi Interactive Shell commands directly into the
Our simple example shows a set of commands that create and solve a simple linear programming model, and then plot the resulting constraints and the computed optimal vertex.
For those of you who aren't familiar with notebook-style interfaces, they allow you to mix executable code, text, and graphics to create a self-documenting stream of results. Notebooks can be saved and continued later, which make them particularly well suited for prototyping and experimentation.