ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 01 Mar 2017 15:47:08 +0100Sage cell server dead after one request from clienthttps://ask.sagemath.org/question/36776/sage-cell-server-dead-after-one-request-from-client/ I want to access the SAGE cell server programatically from Python 3. I found [this example](https://github.com/sagemath/sagecell/blob/master/contrib/sagecell-client/sagecell-client.py) here, which uses the Websockets interface.
It works nice and smooth, but only for exactly **one request**, because after that the `execution_state` of the connection is `dead`. The [documentation](https://github.com/sagemath/sagecell/wiki/Messages) even describes that:
You’ll get a kernel dead message on the IOPub channel when the cell times out. If you don’t have
interacts, it will time out pretty much immediately. If you do have interacts, then the timeout
is something 30 or 60 seconds between each execute_request.
If I connect each time anew it will be slower for me and waste much more resources on the server side (I guess), so it would be best if I could somehow re-use the connection. Timeout only needs to be some 1-5 seconds, basically a couple of RTTs of the Internet.
Is there anything I could do?wrognWed, 01 Mar 2017 15:47:08 +0100https://ask.sagemath.org/question/36776/sage HTTP request/responsehttps://ask.sagemath.org/question/9882/sage-http-requestresponse/Hello
I would like to do some math in sage then be able to communicate my answer to a php server using post/get etc...
I understand that it is possible to use sage functions inside the sage python shell and do everything else in python.
My concrete question is whether it is possible using only native sage (no python) to do POST/GET communications? Moataz ElmasryTue, 05 Mar 2013 14:01:40 +0100https://ask.sagemath.org/question/9882/