Skip to main content

Demo

Demo

Turtle graphics based on ipycanvas which can run on jupyter lab/notebook/vscode.

https://github.com/williamnavaraj/ipyturtle3/blob/main/Images/TurtleWin.gif

Usage: Installation

pip install ipyturtle3

Example ipynb code. Run this in a cell.

import ipyturtle3 as turtle
from ipyturtle3 import hold_canvas
myCanvas=turtle.Canvas(width=500,height=250)
display(myCanvas)
myTS=turtle.TurtleScreen(myCanvas)
myTS.clear()
myTS.bgcolor("lightgreen")
bob=turtle.Turtle(myTS)
jess=turtle.Turtle(myTS,isHolonomic=True)
jess.shape("square")
bob.shape("turtle")

myTS.delay(200)
# Usual turtle Non-holonomic example
bob.forward(50)
bob.left(90)
bob.forward(50)
bob.left(90)
bob.forward(50)
bob.left(90)
bob.forward(50)


#Holonomic
jess.moveleft(200)
jess.moveup(100)
jess.moveright(100)
jess.movedown(100)
jess.turnright(45)
jess.turn(-45)
jess.distance_at_angle(50,45)

myTS.clear()

# Rainbow benzene
colors = ['red', 'purple', 'blue', 'green', 'orange', 'yellow']
t = turtle.Turtle(myTS)
myTS.bgcolor('black')
for x in range(50):
    with(hold_canvas(myCanvas)):
        t.pencolor(colors[x%6])
        t.width(x//100 + 1)
        t.forward(x)
        t.left(59)

Metadata

Release files for ipyturtle3 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ipyturtle3 0.1.4
File Size Uploaded
ipyturtle3-0.1.4.tar.gz 6.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ipyturtle3 0.1.4
File Interpreter ABI Platform
ipyturtle3-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 12.9 kB

Release files / ipyturtle3-0.1.4.tar.gz

Download URL ipyturtle3-0.1.4.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
82a180ffad757e8671a6e0d119d06167388b9d163a33a037ffcfb7771cdf65f4
BLAKE2b-256 checksum
How to use checksums
8992b0f716742ea285e63d9ea6d31a3003ec805e488890dba3e1fb849d5767df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.11.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

Release files / ipyturtle3-0.1.4-py3-none-any.whl

Download URL ipyturtle3-0.1.4-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ac02d1fa065c24ec99555ef00ce602114f1ae0f0cb6dc8e5094a73ba035d5d7c
BLAKE2b-256 checksum
How to use checksums
20017165219ab45c09317dcfa924f5971fd664febe44f87b0cddffef048606f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.11.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page