How to embed links from Gists to an iframe

Our VLE doesn’t allow us to embed <script> tags which is the only way that Gist allows embeds of code but I found this alternative which seems to work.

TLDR; add .pibb to the end of the shareable link

<iframe src="https://gist.github.com/laura-james/f42fddb216f486eb80ac1b955f3618d2.pibb" style="width: 100%">
</iframe>

 

It works!

 

Just wish it was that easy to do from Replit – it just seems to want to show a cover image when I just want it to show the main.py file. Grrr!

Adventures with microbits

It’s the Raspberry Pi Competition with PA Consulting again and this year’s topic is about healthcare and well-being.

The students who want to do the competition have been talking about sensors to read heart rate, step count, crash detection. We are constrained by budget (there are great components specifically for the Pi we can use – like the senseHat) but we have lots of microbits at school – I wondered if we could use them to record something like step count and then send that data over radio?

Read more…

Conditional Formatting – when cell contains text

Its the start of a new year and I’m getting my class timetable from our school system. I like working with colour coding so I can see what years I’m teaching. I used to do it manually but today I looked into how to do it using conditional formatting in Excel. It’s a bit odd but it seems to work. You have to add it based on a formula and the formula I used is this:

=ISNUMBER(SEARCH($A$1,"9"))

..to look for a cell that contains “9”. Note: $A$1 is the first cell of the block I have selected. And I make the background colour change to yellow.

I’ve added 4 other rows depending on what Year groups I’m teaching (eg 10, 11, 12 and 13)

It should also make it easier to change the colours if I think they’re a bit naff!

Another useful conditional formatting rule I discovered to highlight those students who missed marks in each question is shown below:

See how the max mark is shown at the top of the column (row 8) and the student marks are from G12 across and down. It just makes it easy to spot patterns where students haven’t got full marks.

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!)