Ask Your Question

python turtle graphics in sagemath cloud

asked 2014-10-09 20:21:15 +0200

David Guichard gravatar image

updated 2015-01-17 17:49:09 +0200

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-10 02:59:20 +0200 )edit

1 Answer

Sort by » oldest newest most voted

answered 2014-11-21 12:45:01 +0200

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-28 00:31:11 +0200 )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 20:21:15 +0200

Seen: 1,003 times

Last updated: Nov 21 '14