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
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.