Source: https://jupyter.org/

Jupyter notebook & its variants

Extensions

Magic commands or Instructions

CommandDescription & Example
%load_ext sqlThis line prepares your Jupyter Notebook environment to understand and execute SQL commands by loading the sql extension.q
%sql sqlite:///sample.dbCreate and connect to SQLite database in the same directory as our jupyter notebook
%%sqlRun SQL query in the current code cell