Ask Your Question

python turtle graphics in sagemath cloud

asked 2014-10-09 13:21:15 -0500

David Guichard gravatar image

updated 2015-01-17 10:49:09 -0500

FrédéricC gravatar image

The turtle module seems to be available in the cloud, but it wants to open a remote window. It would be ideal if it could display the graphics in the browser. Otherwise, X forwarding would work in some circumstances, if I'm not behind a firewall or a NAT.

edit retag flag offensive close merge delete


I have not tried this, but perhaps a %inline command might resolve the issue.

calc314 gravatar imagecalc314 ( 2014-10-09 19:59:20 -0500 )edit

1 answer

Sort by » oldest newest most voted

answered 2014-11-21 05:45:01 -0500

ndomes gravatar image

Python turtle opens a Tkinter window locally, I am afraid there is no web server module for Tkinter.

I suppose it is easier to write a Sage turtle module than to get Tkinter available inside Sage Cloud or Sage Notebook.

You can find my modest attempt here:

edit flag offensive delete link more


Thanks! I'll play around with that.

-- David

David Guichard gravatar imageDavid Guichard ( 2015-01-27 17:31:11 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2014-10-09 13:21:15 -0500

Seen: 644 times

Last updated: Nov 21 '14