Ask Your Question
0

It is possible to use Pygame or Turtle with Sage?

asked 2022-06-28 23:59:39 +0100

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.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-07-04 08:06:42 +0100

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.

edit flag offensive delete link more

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: 2022-06-28 23:59:39 +0100

Seen: 169 times

Last updated: Jul 04 '22