Using the iPython Notebook

To launch 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 In window:

Image ipythonnotebook_linux1

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.

Try Gurobi for Free

Choose the evaluation license that fits you best, and start working with our Expert Team for technical guidance and support.

Evaluation License
Get a free, full-featured license of the Gurobi Optimizer to experience the performance, support, benchmarking and tuning services we provide as part of our product offering.
Academic License
Gurobi supports the teaching and use of optimization within academic institutions. We offer free, full-featured copies of Gurobi for use in class, and for research.
Cloud Trial

Request free trial hours, so you can see how quickly and easily a model can be solved on the cloud.