Page 1 of 1

[python API] Running GAMS through Jupyter notebook

Posted: Tue Feb 07, 2017 4:24 pm
by samarth.tu-dresden
Hi all!

Anyone knows how to run gams code from Jupyter notebook and read the result? Would very much appreciate the help.

Cheers!
Samarth

Re: [python API] Running GAMS through Jupyter notebook

Posted: Wed Feb 08, 2017 2:10 pm
by Clemens
Samarth,
it should not make too much of a difference whether you are running Python from Jupyter or from a usual cmd prompt. I just installed Anaconda 2.7 (64 bit on Windows) to give the GAMS Python API a try in a Jupyter notebook. After installing the API from the command line using the Python version that was installed with Anaconda, I was able to execute some Python code that uses the GAMS Python API.
I recommend having a look at the documentation, especially at http://www.gams.com/latest/docs/apis/ex ... NG_STARTED

Best,
Clemens