Skip to the content.

IPython Notebooks

Back to Python

IPython Notebooks (AKA Jupyter Notebooks)

IPython Notebooks are a special type of file that allows you to run Python code one block at a time. These notebooks allow you to store both Python code and its output in one file. The output of a block of code is stored in the file once it is run, so it is persistent and will remain when you close and open the file again.

IPython Notebooks can also contain markdown formatting, allowing it to act like, well, a notebook. The notebooks store markdown-style text, code blocks, and code output. This makes them ideal for experimenting, learning, and debugging.

Using IPython Notebooks

IPython Notebooks (aka Jupyter Notebooks) can be opened with several programs. The most prominent is the Jupyter Notebook Interface. This is an interactive environment/editor that you can run locally. To check it out, you can view an online example notebook here. You can download the software using the instructions here.

An alternative to Jupyter is to use Visual Studio Code. After installing the Python and Jupyter extensions from the built-in extension browser, you can edit and run IPython Notebooks directly from VS Code.

Once you create or open an IPython Notebook, you can execute code block-by-block. The keys to do this vary depending on the IDE you are using, so Google is your best friend.