Installing a Jupyter extension
Extensions modify the appearance or behaviour of Jupyter applications (including JupyterLab and Jupyter Notebook).
/home/cdswfor each project.
The following example installs the
ipython-sql extension. This extension
%sql magic command that allows you to communicate directly with any
database supported by SQLAlchemy.
- Launch a JupyterLab session.
Open a terminal and run the following command:
pip install ipython-sql
Open a notebook or console and run the following command:
%sqlmagic command to connect to a particular database, and the
%%sqlmagic command to create a cell containing an SQL query to run against that database. See the JupyterLab documentation for additional information on Jupyter magic commands.