Jupyter Notebook

Jupyter Notebook is an open source web application that allows you to create interactive Python documents. Distributions like Anaconda ship with Jupyter Notebook by default. To start Jupyter, simply type jupyter-notebook in a terminal window.

If your Python environment doesn't have Jupyter Notebook installed, you should be able to install it via the command python -m pip install jupyter.

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:

\scalebox{1.0}{\includegraphics[width=.9\textwidth]{graphics/jupyter_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.

Search