How do you connect the python turtle library to an HTML element so it can be seen in the app?

In that case, it’s probably best to share a clone link so others can see and run your code themselves.

Some instructions here:

Have you tried adding print debug statements? To make sure your form_show event handler is running.
Are you seeing any errors?