Adding code samples from Repl.it to OneNote is pretty straight forward. Once you're written your code on Repl.it, simply grab the sharing code by clicking the "Share" button:
Once it's done, pasting the link into OneNote will embed the executable code snippet right into the notebook:
Microsoft is hoping that this new feature will make it easy for teachers to share live code demos and you're also invited to share your feedback about this new integration on the OneNote uservoice website. Let us know in the comments if you think this latest feature is a welcome addition to the already versatile note-taking app.