gkvoelkl / ipython-turtle-widget

Creating Turtle Geometry with IPython ipyturtle
MIT License
33 stars 12 forks source link

Turtle not drawing a line #21

Closed jamesf1234 closed 3 years ago

jamesf1234 commented 3 years ago

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 commented 3 years ago

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