Ask Your Question
1

python turtle graphics in sagemath cloud

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

David Guichard gravatar image

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

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

Comments

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

calc314 gravatar imagecalc314 ( 2014-10-10 02:59:20 +0100 )edit

1 Answer

Sort by » oldest newest most voted
1

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

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: http://85.214.246.147:8080/home/pub/201/

edit flag offensive delete link more

Comments

Thanks! I'll play around with that.

-- David

David Guichard gravatar imageDavid Guichard ( 2015-01-28 00:31:11 +0100 )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

2 followers

Stats

Asked: 2014-10-09 20:21:15 +0100

Seen: 1,095 times

Last updated: Nov 21 '14