New feature into One Note, for those ones who didnt know there is a website www.repl.it where you can create code snippets in many different languages.
If you are into teaching, or demoing you are probably using OneNote, this new feature what will allow you is to embed the code snippet including the editor and the possibility to run the code inside one note.
1. Share your code on the website, copy and paste that link
2. Paste the code into OneNote, and then you can see your embedded object.