Ask Your Question
1

python turtle graphics in sagemath cloud

asked 10 years ago

David Guichard gravatar image

updated 10 years ago

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.

Preview: (hide)

Comments

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

calc314 gravatar imagecalc314 ( 10 years ago )

1 Answer

Sort by » oldest newest most voted
1

answered 10 years ago

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/

Preview: (hide)
link

Comments

Thanks! I'll play around with that.

-- David

David Guichard gravatar imageDavid Guichard ( 10 years ago )

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: 10 years ago

Seen: 1,118 times

Last updated: Nov 21 '14