OneNote and

  • Alasdair Sharp

    TIL you can embed code into OneNote pages really easily!

    I was looking to see if I could use Azure/Jupyter Notebooks for programming tasks and I stumbled onto an blog post from a few years ago that mentioned using code snippets in OneNote here.

    All you have to do is set up the code in a project, paste the share link into the page and a wee applet loads. The code is then forked if any changes are made. So the kids can edit and experiment with the code without altering the original. It does look like it will reload the original every time the page is opened though, so if they’re doing tasks then they’ll need somewhere to paste their altered code.

    I was planning to use this for code examples in the class notes and have a blank one for any tasks where I want them to code at home so they don’t need to install any software. can create projects for a wide range of languages including Python, SQLite, and HTML/CSS/JS. It even has some game development languages if you’re running the NPA.

    I tried it today using the Class Notebook in the Teams desktop app. I then accessed the page in the Chrome version and it worked there too. I haven’t tried it through a tablet or other browsers though.

    Iain Purdie
    Participant works fine on Safari / iPads – we trialled it at the start of lockdown. Screen real-estate isn’t great, so we recommended pupils got hold of a bluetooth keyboard… but we’d recommend them if they’re having to use a tablet while working from home regardless.

    I can second the recommendation. Great site, easy to use and removes the need for pupils to install software on their home machines (or indeed for staff to have software installed on school machines)!

    Sean Stratton

    I’ve enjoyed marking the repl stuff in teams. So easy for the kids to share the URL as well as taking screenshots. I’ll need to look at how to use it to do self marking bug finding.

    Gavin Hunter
    Participant in OneNote is awesome.

    It’s sometimes better to insert an image of the code and then embed the repl below but with this added to the url (add it before any

    It then only displays an output box and doesn’t show the code. Otherwise pupils type in the box and forks the code – pupils end up with a ton of random files in ‘My Repls’.

    It gives you a link that opens a browser and then pupils could fork the code, edit, then delete the embedded content in OneNote and replace it with their own.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.