Today I want to share a cool thing that you can install on your computer that can help you write documents with live code. It’s called Jupyter Notebook.
I discovered it while I was watching a Python tutorial on Udemy. Since then I have always used it to jot down study notes and keep them all in one place.
My previous approach was to write in-line comments in my code. It worked but it was very limiting. With Jupyter Notebook, I can write rich text just like Google docs but with the ability to embed live code and see its output.
Here’s an example of what that looks like:

I, of course, use it very naively. There’s a lot more that can be done and you can read all about it at https://jupyter.org/
If you’re interested, you can get it from here. Once installed, it can be run via terminal by typing in jupyter notebook. That’s it! 🙂