Question: maple connection with jupyter notebook: outputting only final results in for loop

I tried connecting Maple to Jupyter Notebook, but it seems that it is not keen on outputting everything within the for loop; it only outputs the last item.

for i from 1 to 24 do
    print(i);
end do;

Please Wait...