Ask Your Question
1

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

Comments

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
1

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: 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-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

2 followers

Stats

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

Seen: 663 times

Last updated: Nov 21 '14