Magic Commands are powerful shortcuts exposed by the kernel that allow you to solve many common problems.
Read the magic documenation
- Input the command %magic to view the documentation for magic commands.

List all available magic commands
- Input the command %lsmagic to view all available magic commands.
- Press shift + enter

Run External Code using the %run magic command
- Create a python file outside of the Jupyter Notebook.
- To run an external file input the command %run <python file name>
- Press shift + enter


Measure the execution time of code using %timeit magic command
- To measure a single line of code use %timeit magic command before the line of code you want to measure.
- To measure multiple lines of code use the %%timeit magic command before the lines of code you want to measure.

To use the shell use the %system magic command
- Use the %system magic command to use shell

- Jupyter Lesson 1: Installing the Jupyter Notebook
- Jupyter Lesson 2: Starting the Jupyter Notebook
- Jupyter Lesson 3: Create a working folder in the Jupyter Notebook
- Jupyter Lesson 4: Create a new Jupyter Notebook
- Jupyter Lesson 5: Working with MarkDown Cells
- Jupyter Lesson 6: Working with Code Cells
- Jupyter Lesson 7: Using Magic Commands
- Jupyter Lesson 8: Jupyter Notebook Keyboard Shortcuts
- Jupyter Lesson 9: How to Interrupt the Kernel (Stop code from running)
- Jupyter Lesson 10: How to reset the Kernel (Clear all in memory objects and stop the code)
- IPyWidgets (UI Controls)