Perhaps the easiest workaround is to inspect the contents of the log file. Or go back to using the command-line Python rather than IDLE.
def messageCB(model, where):
if where == GRB.Callback.MESSAGE:
print model.cbGet(GRB.Callback.MSG_STRING),
Then you can call:
model.optimize(messageCB)
replacing "model" by the name of your model object. You can automate this via a technique called a "monkey patch", replacing the optimize method in the Model class:
def logoptimize(self):
self.__optimize(messageCB)
Model.__optimize = Model.optimize
Model.optimize = logoptimize
Then, you can simply call optimize() on your Model object, and the output will be sent to the IDLE display.