Get Started with Skulpt

Getting Started with Skulpt is easy!

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

Embed 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 skulpt.js or skulpt-min.js and skulpt-stdlib.js to your project, load the Javascript just before the </body> closing tag.

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.

Releases

0.10.0

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.