Trinket Has Shut Down: Alternatives for Running Python
Trinket closed on August 31, 2026. Here are the alternatives for running and teaching Python online, including the options Trinket itself points to.
On this page
If you used Trinket to write Python in the browser or to teach a class, you will have noticed it is gone. Trinket shut down on August 31, 2026, and the site no longer works. This guide explains what happened and where you can run Python online now.
What happened to Trinket
According to the notice on trinket.io, the service closed on August 31, 2026. Trinkets, courses, assignments and account data are no longer accessible, and the export tools that were offered before the shutdown went offline with the rest of the site. In Trinket's own words: "We are not able to retrieve content or accounts."
If you have copies of your code saved elsewhere, such as in documents, emails or files on your computer, keep them. That is now the only way to bring old projects across.
What to look for in a replacement
Think about how you actually used Trinket:
- Running Python with no install, in any browser, including on school computers and Chromebooks.
- Programs that ask questions with
input(). - Turtle graphics and other drawing, which Trinket was popular for.
- Classroom tools: assignments, student accounts and grading.
- Sharing code with a link.
No single tool is best at all of these, so match the replacement to what matters most to you.
The alternatives Trinket points to
Trinket's shutdown notice lists several independent services that cover similar ground:
- Pickcode: a coding platform with a guide for people moving from Trinket.
- Dodona: free for teachers, supports more than 20 languages, and its team offers help converting Trinket content.
- Kita: a free, collaborative, browser-based platform with built-in assessment and a migration guide.
- trinket.strivemath.org: a community member runs a copy of Trinket's open-source software here. It is not affiliated with Trinket, and old content was not transferred to it, but it may suit you if you want a Trinket-style environment.
These are separate services, so check that each fits your needs, especially for classroom use.
Running Python in PythonExecutor
PythonExecutor is a free Python playground that runs real Python 3.12 inside your browser. It is a good fit if you are learning on your own or want a quick place to run scripts:
- No account and no install. Open the playground and press Run.
- input() works. When a program asks a question, you type the answer in the terminal while it runs.
- Packages: install numpy, pandas and other supported packages by name.
- Several files, so you can import one module from another.
- Share links that open your code exactly as you left it.
- A free course with exercises that are checked in your browser, plus 145 runnable examples.
It is not a full Trinket replacement, and it is worth being clear about what it does not do:
- No turtle graphics or other drawing. Programs print text only.
- No classroom features such as assignments, rosters or grading.
- No accounts, so work is saved in your own browser rather than in the cloud.
Which one should you choose?
- You teach a class and need assignments or grading: look at Dodona or Kita first.
- Your projects rely on turtle graphics: try trinket.strivemath.org or one of the platforms above.
- You are learning Python yourself, or want to run scripts quickly: PythonExecutor will get you going in seconds, and the free course gives you a path to follow.
Bringing your code across
To move a saved Trinket program into PythonExecutor, open the playground, paste your code into the editor and press Run. If it uses several files, create them in the sidebar with the same names. Then press Share to get a link you can keep or send to others.
By PythonExecutor Team