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:
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.
Please sign in to leave a comment.