Python Code to Know

This is the copy of the Jupyter Notebook I was working on Google Co Lab to show the Year 10/11s for the basics of Python programming. But alas Google Colab is blocked in school. However there is a way of publishing the notebook as a GitHub Gist. And the link below should show the gist (which is linked to the Colab notebook. Confused? I know I am!)

How I finally got a Python Flask app installed on Cpanel

In summary:

1. Check versions! Of Python, Flask and Jinja
2. Read this really useful tutorial https://dev.to/lordghostx/how-to-host-flask-applications-on-namecheap-cpanel-299b (Thanks LordGhostX)

Okay so I’ve been meaning to figure this out for a while. Flask is a good library for letting students use the power of Python as a back end to the graphical niceties of HTML,CSS and Javascript. But we’ve been stuck to using it on Replit or Glitch which, being public sites, aren’t ideal for students who are doing their final year project and suffer the other issues of remotely hosted IDEs. So I was always interested in finding another way. Read more…

Learning about AI with Google’s Teachable Machine

https://teachablemachine.withgoogle.com/

I’m teaching a module on Artificial Intelligence to my Year 9 students, and they are really enjoying it. Today’s lesson was about “How do we get a machine to learn” and led on to training the following machine to recognise the difference between two students.
Unfortunately, the model was taking too long to train at the end of the lesson (hint – always leave plenty of time to do this activity!) but I didn’t want to lose the value training it had done so at the end I downloaded the model and set up a page that has a webcam that will (hopefully) detect which student is standing in front of the camera. The beauty of this is that no images of the students are stored anywhere. The model has already learned all it needs and discarded the original images.

https://geekcandy.co.uk/teachablemachine/