The Spyder IDE

To launch the Spyder Python IDE, which is included in the Anaconda distribution, simply type spyder in a terminal window. Gurobi Interactive Shell commands can be typed directly into the Spyder Console window:


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

Note that a general-purpose Python IDE like Spyder requires one extra step to use Gurobi that isn't required when you launch the Gurobi shell from the command: you must manually load the Gurobi module by typing from gurobipy import * (or import gurobipy as gp) before issuing any Gurobi commands.

You can also use Spyder to run any of the Gurobi examples. For example, if you use Open under the File menu to open Gurobi example, and then click on the Run icon (the green triangle), you should see:


Some Gurobi examples require command-line arguments. Those can be input from the Configure... item of the Run menu. For example, to run the example with file sudoku1 as input ...


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.