[PYTHON] Play with Turtle on Google Colab

Introduction

This article is a forgetting memo about how to use Turtle on Google Colab, which I use to study Pyhon.

What is Turtle?

From the original site: Turtle Graphics

Turtle graphics are often used as an introduction to programming for children. Turtle Graphics is part of the original Logo programming language developed by Wally Feurzeig, Seymour Papert, and Cynthia Solomon in 1967.

In short, it's a framework that makes it easy to draw using Python. It feels like a library for a Java shop. .. ..

You can't just play Turtle on Google Colab

So ColabTurtleUse the! There are people in the world who think about the same thing and make useful things (thanks)

How to use

Very simple! Just run the code below

Google Colaboratory


!pip3 install ColabTurtle

After that, you can play by writing the code as follows

Google Colaboratory


from ColabTurtle.Turtle import *
initializeTurtle()
forward(10)
left(10)
forward(20)
left(10)

Recommended Posts

Play with Turtle on Google Colab
Machine learning with Pytorch on Google Colab
About learning with google colab
Plotly Dash on Google Colab
Play with a turtle with turtle graphics (Part 1)
Deep Learning with Shogi AI on Mac and Google Colab
Deep Learning with Shogi AI on Mac and Google Colab Chapter 11
Deep Learning with Shogi AI on Mac and Google Colab Chapters 1-6
Deep Learning with Shogi AI on Mac and Google Colab Chapter 8
Deep Learning with Shogi AI on Mac and Google Colab Chapter 12 3
Deep Learning with Shogi AI on Mac and Google Colab Chapter 7
Deep Learning with Shogi AI on Mac and Google Colab Chapter 10
Deep Learning with Shogi AI on Mac and Google Colab Chapter 7 5-7
Deep Learning with Shogi AI on Mac and Google Colab Chapter 9
Deep Learning with Shogi AI on Mac and Google Colab Chapter 12 3
Deep Learning with Shogi AI on Mac and Google Colab Chapter 12 3
Deep Learning with Shogi AI on Mac and Google Colab Chapter 12 1-2
Deep Learning with Shogi AI on Mac and Google Colab Chapter 12 3 ~ 5
Deep Learning with Shogi AI on Mac and Google Colab Chapter 7 9
Deep Learning with Shogi AI on Mac and Google Colab Chapter 8 5-9
Deep Learning with Shogi AI on Mac and Google Colab Chapter 8 1-4
Deep Learning with Shogi AI on Mac and Google Colab Chapter 12 3
Deep Learning with Shogi AI on Mac and Google Colab Chapter 7 8
Deep Learning with Shogi AI on Mac and Google Colab Chapter 7 1-4
Use MeCab and neologd with Google Colab
Image segment using Oxford_iiit_pet on Google Colab
Verify coordinates on Google Map with Geocoder
Play with Prophet
Play with PyTorch
Play with 2016-Python
Play with Pyramid
Learn with Shogi AI Deep Learning on Mac and Google Colab Use Google Colab
Play with Fathom
Deep Learning on Mac and Google Colab Words Learned with Shogi AI
Play with Google Spread Sheets in python (OAuth)
Play with your Ubuntu desktop on your Raspberry Pi 4
Cheat sheet when scraping with Google Colaboratory (Colab)
Authenticate Google with Django
Implement Sign In With Google on the backend side
Play with Othello (Reversi)
Play chess on Discord
Easy way to scrape with python using Google Colab
PIL with Python on Windows 8 (for Google App Engine)
Code snippets often used when using BigQuery with Google Colab
Deploy your Go app on Google App Engine with GitHub Actions
An error that stumbled upon learning YOLO on Google Colab
Sample code summary when working with Google Spreadsheets from Google Colab
Save images on the web to Drive with Python (Colab)
Play with YouTube Data API v3 using Google API Python Client
Let's play with 4D 4th
Let's play with Amedas data-Part 1
ls -R on Google Drive
Play with reinforcement learning with MuZero
Play with push notifications with imap4lib
Detect Google Play Store updates
Use music21 on Google Colaboratory
Try Google Mock with C
Try StyleGAN on Google Colaboratory
Play around with Linux partitions
Study Python with Google Colaboratory
Let's play with Amedas data-Part 4