To add PyCanvas into your application with skulpt, just add the following to the top of your builtInRead() function:
Now set these variables when you run your code:
And create a canvas with the id canvas inside a div with the id preview-container.
To create a basic application, define your functions and pass them to s.start() in a dictionary: