Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turtle not drawing a line #21

Closed
jamesf1234 opened this issue Dec 17, 2020 · 1 comment
Closed

Turtle not drawing a line #21

jamesf1234 opened this issue Dec 17, 2020 · 1 comment

Comments

@jamesf1234
Copy link

Tried a simple piece of code in Jupyter hub. The turtle moves but does not draw a line. Any ideas?

`from ipyturtle import Turtle

Bill = Turtle()
Bill.pencolor("Red")
Bill.pendown()
Bill.forward(100)
Bill.right(90)
Bill.forward(100)
Bill
#print (Bill.isdown())`

@gkvoelkl
Copy link
Owner

First this 2 lines in one cell

Bill = Turtle()
Bill

than all other commands

After the first two lines the tutrtle exists and the communication between JavaScript and Python works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants