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.Tue, 18 Jun 2019 19:37:35 +0200Is there any way we can use SageMath in the website as a Math Engine?https://ask.sagemath.org/question/46923/is-there-any-way-we-can-use-sagemath-in-the-website-as-a-math-engine/I want to develop a website where students can learn math online and solve the problems in the website. I also want to use ML and AI to generate the mathematical questions by itself. When the student sees the question, he/she tries to answer the question. Once answered, we can cross check the ans with SageMath. I want to use SageMath in my website as a backend.Sun, 16 Jun 2019 23:27:31 +0200https://ask.sagemath.org/question/46923/is-there-any-way-we-can-use-sagemath-in-the-website-as-a-math-engine/Answer by Emmanuel Charpentier for <p>I want to develop a website where students can learn math online and solve the problems in the website. I also want to use ML and AI to generate the mathematical questions by itself. When the student sees the question, he/she tries to answer the question. Once answered, we can cross check the ans with SageMath. I want to use SageMath in my website as a backend.</p>
https://ask.sagemath.org/question/46923/is-there-any-way-we-can-use-sagemath-in-the-website-as-a-math-engine/?answer=46927#post-id-46927That was the point of the old Sage notebook, now considered as unmaintainable.
Attempts are done to interface Sagemath and Jupyterlab, which would allow such multiple interactions. Search for that in the sage-devel archives. IIRC, this will be much easier with a Python3-based Sagemath.
You can also develop a dedicated Web server using Sagemath as a backend. The real difficulty is to choose between a "single-shot" service (i. e. any Sagemath use is self-contained) and a session-based service (i.e. queries at time t can use definitions and statements made at t'<t). In the first case, you use Sagemath almost as a library, in the second case, your application must maintain its sessions (or, equivalently, launch one Sagemath session per user.
HTH,Tue, 18 Jun 2019 08:20:59 +0200https://ask.sagemath.org/question/46923/is-there-any-way-we-can-use-sagemath-in-the-website-as-a-math-engine/?answer=46927#post-id-46927Comment by Emmanuel Charpentier for <p>That was the point of the old Sage notebook, now considered as unmaintainable.</p>
<p>Attempts are done to interface Sagemath and Jupyterlab, which would allow such multiple interactions. Search for that in the sage-devel archives. IIRC, this will be much easier with a Python3-based Sagemath.</p>
<p>You can also develop a dedicated Web server using Sagemath as a backend. The real difficulty is to choose between a "single-shot" service (i. e. any Sagemath use is self-contained) and a session-based service (i.e. queries at time t can use definitions and statements made at t'<t). in="" the="" first="" case,="" you="" use="" sagemath="" almost="" as="" a="" library,="" in="" the="" second="" case,="" your="" application="" must="" maintain="" its="" sessions="" (or,="" equivalently,="" launch="" one="" sagemath="" session="" per="" user.<="" p="">
</p><p>HTH,</p>
https://ask.sagemath.org/question/46923/is-there-any-way-we-can-use-sagemath-in-the-website-as-a-math-engine/?comment=46937#post-id-46937The Web server software seems to have munched my answer irretrievably. Sorry...Tue, 18 Jun 2019 19:37:35 +0200https://ask.sagemath.org/question/46923/is-there-any-way-we-can-use-sagemath-in-the-website-as-a-math-engine/?comment=46937#post-id-46937