Ask Your Question
0

It is possible to use Pygame or Turtle with Sage?

asked 2 years ago

Mimi gravatar image

Hello from France ,

the question is in the title.

For example , whem i am using tutrle whit sage's jupiter , i see this error " no display name and no $display environment variable " , probably the same for pygame will apparead with pygame.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
0

answered 2 years ago

slelievre gravatar image

Some results from this web search query helped me:

in particular this one:

Turtle for Sage in Jupyter

In a Jupyter sheet running the Sage kernel, run

%pip install ipyturtle

Then restart the kernel, and the following should work:

from ipyturtle import Turtle
t = Turtle()
t

Pygame for Sage in Jupyter

In a Jupyter sheet running the Sage kernel, run

%pip install pygame

Then Pygame should work for you in Sage.

Preview: (hide)
link

Your Answer

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

Add Answer

Question Tools

1 follower

Stats

Asked: 2 years ago

Seen: 228 times

Last updated: Jul 04 '22