SageMath/Python as the scripting language for the Web

25 views
Skip to first unread message

Jorge Manrique

unread,
Oct 6, 2017, 3:06:45 AM10/6/17
to sage-support


Hello everyone,
I have an interactive program in Python. The program does some calculations with SageMath and graphs the results. The code is a bit long.
I want to embed the program on a webpage using SageCell and I wonder if I can leave the Python program on the web server and use an external script:

<head>
. . . . . . .
 <script>
    sagecell.makeSagecell ({
         inputLocation: '#plot'
    })
 </ script>
</ head>
. . . . . . .
<div id = "plot">
 <script type = "text / x-sage" src = "/ src / somegraph.py"> </ script>
</ div>

Just as Brython does

Any suggestions will be appreciated,
Jorge
Reply all
Reply to author
Forward
0 new messages