Help & Documentation
Take a look at these documents to learn more about how to use trinket.
Can't find what you're looking for? Contact us!
Getting Started
Frequently Asked Questions
What is trinket?
How can I get started with trinket?
What version of Python do you use?
The browser-based Python trinket supports a large subset of both Python 2 and Python 3 and includes visual modules such as turtle. It defaults to Python 3 behavior where the versions differ. Add #!/bin/python3 as the first line to require its strict Python 3 compatibility mode.
The server-side Python 3 trinket runs CPython and includes scientific libraries, but its headless sandbox cannot display Tkinter-based modules such as turtle. Use a Pygame trinket when real CPython 3 code requires a graphical display.
How do I add an interactive trinket to my website?
<iframe src="https://trinket.io/embed/python/b9b4074bb7" width="100%" height="400" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe>Is trinket free?
Our Documentation Courses
Teaching with trinket
Learn more and get ideas about teaching with trinket from Part 3 of our trinket documentation course.
Self-Hosting & Development
Trinket is open source software. For information on running your own instance, or to report bugs and request features, see the GitHub repository.