BYU-PRISM / GEKKO

GEKKO Python for Machine Learning and Dynamic Optimization
https://machinelearning.byu.edu
Other
573 stars 102 forks source link

Variables don't load into GUI interface #86

Closed hansenb44 closed 4 years ago

hansenb44 commented 4 years ago

Model is solving successfully, GUI opens, but variables are not populated into GUI. No error is thrown that I can tell. Gekko 0.2.6 Python 3.6 Spyder IDE 3.2.4 Windows 10

Here is a minimum working example that replicates the problem on my system: from gekko import GEKKO import numpy as np m = GEKKO(remote = False) m.time = np.linspace(0,100,100) x = m.Var(value = 0) m.Equation(x.dt() == 1) m.options.IMODE = 4 # dynamic simulation m.solve(disp=True, GUI = True)

Here's what I see in the GUI (Chrome Browser): image

hansenb44 commented 4 years ago

Tested running example code in anaconda prompt instead of Spyder IDE and the variables load into GUI as expected.

Per hint from @loganbeal , see also issue #35, suspected issue was in ipthon. Updated ipython:

pip install ipython --upgrade --user

restarted Spyder, and issue is resolved.