GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - fluentpython/jupyturtle2: Python Turtle graphics for Jupyter notebooks

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

44 Commits
44 Commits

Folders and files

NameName
Last commit message
Last commit date
.gitignore
.gitignore
 
 
README.md
README.md
 
 
ThinkPythonChap04.ipynb
ThinkPythonChap04.ipynb
 
 
canvas-lab.ipynb
canvas-lab.ipynb
 
 
jupyturtle.py
jupyturtle.py
 
 
jupyturtle_test.py
jupyturtle_test.py
 
 
lab.ipynb
lab.ipynb
 
 
pyproject.toml
pyproject.toml
 
 

Repository files navigation

jupyturtle2

Python Turtle graphics for Jupyter notebooks

For a quick demo, open the lab notebook.

jupyturtle2 is a fork of jupyturtle replacing SVG output with rendering on an ipycanvas widget.

It solves the problem of rendering SVG drawings that grow increasingly slow as lines are added.

But ipycanvas introduces two other problems:

  1. A limited number of steps per second, which requires using delay=0.01 for complex drawings.
  2. The final state of the canvases is not saved with the notebook.

I used metaprogramming techniques to build the procedural API with global functions like fd() to move the turtle. The techniques are easier to understand in the didactic project abacus.

@ramalho

About

Python Turtle graphics for Jupyter notebooks

Resources

Readme
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.