gamsjupyter01.gms : Test GAMS Jupyter Notebooks

Description

Contributor: Clemens Westphal, September 2020)


Small Model of Type : GAMS


Category : GAMS Test library


Main file : gamsjupyter01.gms

$TITLE 'Test GAMS Jupyter Notebooks' (GAMSJUPYTER01,SEQ=836)

$ontext
Contributor: Clemens Westphal, September 2020)
$offtext

$set srcRoot %gams.sysdir%apifiles%system.dirsep%Python%system.dirsep%
$set jupyterExamples %srcRoot%jupyter_examples%system.dirsep%
$                             set C ;
$if %system.filesys% == UNIX $set C :
$setEnv PYTHONPATH "%srcRoot%api_38%C%%srcRoot%gams"

$ifthen.JUPYTER setenv JUPYTER
$  call.checkErrorLevel cd . && "%sysenv.JUPYTER%" nbconvert --to notebook --execute "%jupyterExamples%DataTransform.ipynb" > %system.nullfile% 2>&1
$  call.checkErrorLevel cd . && "%sysenv.JUPYTER%" nbconvert --to notebook --execute "%jupyterExamples%Millco.ipynb" > %system.nullfile% 2>&1
$  ifthen.DEMOSIZE not %DEMOSIZE% == 1
$    call.checkErrorLevel cd . && "%sysenv.JUPYTER%" nbconvert --to notebook --execute "%jupyterExamples%Polyomino.ipynb" > %system.nullfile% 2>&1
*$    call.checkErrorLevel cd . && "%sysenv.JUPYTER%" nbconvert --to notebook --execute "%jupyterExamples%Pickstock.ipynb" > %system.nullfile% 2>&1 #4270
$    call.checkErrorLevel cd . && "%sysenv.JUPYTER%" nbconvert --to notebook --execute "%jupyterExamples%NordhausDice.ipynb" > %system.nullfile% 2>&1
$  endif.DEMOSIZE
$endif.JUPYTER