[python API] Running GAMS through Jupyter notebook

Questions on using the GAMS APIs (Python, .NET, etc.)
Post Reply
samarth.tu-dresden
User
User
Posts: 1
Joined: 1 year ago

[python API] Running GAMS through Jupyter notebook

Post by samarth.tu-dresden » 1 year ago

Hi all!

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

Cheers!
Samarth

Clemens
Posts: 29
Joined: 2 years ago

Re: [python API] Running GAMS through Jupyter notebook

Post by Clemens » 1 year ago

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

Post Reply