Skip to main content

Turtles in the Jupyter Notebook

Project description

“Nevertheless… the turtle moves!” - Small Gods, by Terry Pratchett

This is a Turtle module for the Jupyter Notebook. It’s based on code by aspidites, one of two groups at Macewan University that built Turtle as a class assignment (the other was PACattack; I could have based this on either, but I had to pick one).

Using it looks like this:

from mobilechelonian import Turtle
t = Turtle()
t.speed(5)
colours=["red","blue","yellow","brown","black","purple","green"]

t.penup(); t.left(90); t.forward(200);t.right(90);t.pendown()
for i in range (0,18):
    t.pencolor(colours[i%7])
    t.right(20)
    t.forward(50)

t.right(180)
t.home()
sample.png http://mybinder.org/badge.svg

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for mobilechelonian, version 0.5
Filename, size File type Python version Upload date Hashes
Filename, size mobilechelonian-0.5-py2.py3-none-any.whl (94.5 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size mobilechelonian-0.5.tar.gz (91.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page