Skip to main content

Desktop CMU Graphics logo

Desktop CMU Graphics is an offline version of CMU Graphics, a persistent-object graphics package geared towards beginner computer science students. CMU Graphics and its desktop version are maintained by CMU CS Academy, a Carnegie Mellon University project which develops free-to-use middle and high school computer science curriculum.

Desktop CMU Graphics works with Python 3.6-3.11 and is compatible with Replit and Coding Rooms (see the "Replit" and "Coding Rooms" sections below). This package, including its documentation, is licensed under the BSD 3-Clause license.

Installation

Choose zip or pip

There are two different ways to install Desktop CMU Graphics on a device:

  1. (Mac and Windows only) Use the zip file installer that is available for download on the CMU CS Academy website.
  2. (Mac, Windows, and Linux) Use pip, Python’s built-in package-managing software.

Both methods come with their own advantages and limitations. If you're in doubt about which to choose, the zip file installer is the most likely to succeed. It should work regardless of most restrictions in place on school-distributed devices.

For those using devices with Linux operating systems, or for those who are familiar with the command line/terminal, the pip version of the package offers a larger degree of versatility.

The remainder of these installation instructions are only for the pip version.

Install dependencies

If you're using Windows, you don't need to install any dependencies. Skip ahead to "Install CMU Graphics" below.

If you're using a Mac, install Homebrew.

If you're using a Mac or Linux, install the software packages needed by pycairo. Read their getting started page for instructions.

Install CMU Graphics

Run the following command:

pip install cmu-graphics

Getting Started

To run our graphics framework, include the following line at the top of your Python file:

from cmu_graphics import *

At the end of your Python file, add this line:

cmu_graphics.run()

From there, the syntax for using the graphics package is identical to the online version of the framework. You can find more details about how to use the graphics framework here on our documentation page.

Teacher Support and Documentation

If you are a teacher with a CMU CS Academy Account and you have questions about CMU Graphics, remember that you can reach out to us through the Support tab on the left side of the CMU CS Academy website:

Highlighted teacher support tab

If you are an educator but do not have an account with CMU CS Academy, you can register for an account here.

If you are a student, or you are exploring Desktop CMU Graphics, there are plenty of resources to help you get started with the framework. Students can reach out to their teachers for questions about CMU Graphics, and a full reference documentation for the graphics framework is available on our documentation page.

Replit

Desktop CMU Graphics is compatible with Replit. To use the package on the Replit website:

  1. Create a new repl. Choose "Python-CMUGraphics" as the language.
  2. Run your code!

Coding Rooms

Desktop CMU Graphics is compatible with Coding Rooms. To use the package on the Coding Rooms website:

  1. Visit this link to create a workspace
  2. Click "Start Coding Python for Free Now"
  3. Click the blue "View Desktop" button above the shell
  4. Run your code!

Metadata

Release files for cmu-graphics 1.1.34

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

Source distribution (sdist)

Source distribution for cmu-graphics 1.1.34
File Size Uploaded Provenance Actions
cmu_graphics-1.1.34.tar.gz 68.1 kB Without provenance Details for cmu_graphics-1.1.34.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cmu-graphics 1.1.34
File Interpreter ABI Platform Actions
cmu_graphics-1.1.34-py3-none-any.whl Python 3 none any Details for cmu_graphics-1.1.34-py3-none-any.whl

Total release size: 138.4 kB

Release files / cmu_graphics-1.1.34.tar.gz

Download URL cmu_graphics-1.1.34.tar.gz
Size 68.1 kB
Tags Source
SHA-256 checksum
How to use checksums
08ba887fe25094eaebd0e9a022a9fdf67b04f7c917bf61e01b0740646aaea0c0
BLAKE2b-256 checksum
How to use checksums
9d3780b9111e7ec0753984fe68eaaf9e9fd7a3ec250e9dcd34833d3775f7bdd9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.17

Release files / cmu_graphics-1.1.34-py3-none-any.whl

Download URL cmu_graphics-1.1.34-py3-none-any.whl
Size 70.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
22032a17c3fbec50c45a3114dcb5c45cb41f0c2ceb187bd3f79ac832cb2939c4
BLAKE2b-256 checksum
How to use checksums
fc49189d5f18afbe0dcfe353ba1bdf80b5bbba824ddb618264f5568be8b64ffd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.17

Security for cmu-graphics 1.1.34

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.

Release history Release notifications | RSS feed

This release

1.1.34 This release

2 release files No provenance

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