Sage Notebook server / get message

I followed the installation instructions for sagenb. Once this was done, I ran

sage: import sagenb.notebook.notebook_object as nb

sage: nb.notebook(directory="mynotebook")

And got my server. However, I want to be able to send data to the server and GET estimated data. My users will send data from a separate site, and I can not get them to come and go to the sagenb server.

I tried curl --data x http://localhost:8080/home/admin/0/many other commands, but I keep getting

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>405 Method Not Allowed</title>
<h1>Method Not Allowed</h1>
<p>The method is not allowed for the requested URL.</p>

Literally, all I want to do is send the code to the sage server and return the received code. I tried to do this for several weeks using sage, django, sagecell, and I just can't get it to work. Perhaps this is a configuration problem, or maybe I just don’t know the right commands, but if someone can help, it will be very helpful.

, - - , .

+4
1

, Firefox. en. HTTP- XHR: enter image description here

:

enter image description here

, max(3,8)

.

  • eval URL-.
  • , cookie
  • application/x-www-form-urlencoded, Content-type .

HTTP.

curl, , , , api.

+3

Source: https://habr.com/ru/post/1548201/


All Articles