Get Started with Skulpt
Getting Started with Skulpt is easy!
- Embed skulpt into your exsiting webpage or blog
- Add skulpt directly to your HTML for a custom integration
- For even more control, teach Skulpt to import your own custom modules
Need some inspiration for a project? Just want to learn or teach Python? Head over to the Gallery to see how great educational projects are using Skulpt
If you want to embed a nice looking bit of code that your users can edit, Trinket.io can help you with that! You can put together the example on their site, and then generate the code for an iframe that you can embed in your page.
Users can Remix your example and save their work to a free Trinket account.
Use the Share button in the trinket above to get embed code. More information on embeeding trinkets here.
Using Skulpt with HTML
Want the compiled js to include in your site? Everything you need is in this zip: skulpt-dist. After adding
We’re working on getting skulpt onto popular CDNs so you can load them straight from there.
Once your HTML is loading Skulpt, here's a really simple example to get you going. You can copy and paste or grab the code from this gist.
Using Custom Modules
This new feature lets you create and host your own modules for use in Skulpt. The following gist shows how to include one of them in a page.
Customizing modules after import
If you want to customize how a module behaves you can use the ``onAfterImport`` hook. Here is a gist of how the trinket guys do it.
This latest release contains a lot of goodness. - You can now inherit from builtin types including Exceptions! - Major cleanup of numeric types - Bug fixes for iteration when using subclasses with our without `__getitem__` - Bug fixes and more completeness to lookups of dunder methods - complex type is added - brun command added to skulpt for easy access to in-browser debug - Many Many minor bug fixes.