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 Provenance Actions
ipyturtle3-0.1.4.tar.gz 6.2 kB Without provenance Details for ipyturtle3-0.1.4.tar.gz

Built distribution (wheel)

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

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

Security for ipyturtle3 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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