An open API service indexing awesome lists of open source software.

https://github.com/anas436/accessing-ibm-db2-databases-with-sql-magic


https://github.com/anas436/accessing-ibm-db2-databases-with-sql-magic

ipython-sql jupyter-notebook pandas python3 seaborn sql

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

          

# Accessing-IBM-Db2-Databases-with-SQL-Magic

To communicate with SQL Databases from within a JupyterLab notebook, we can use the SQL "magic" provided by the ipython-sql extension. "Magic" is JupyterLab's term for special commands that start with "%". Below, we'll use the load_ext magic to load the ipython-sql extension. In the lab environemnt provided in the course the ipython-sql extension is already installed and so is the ibm_db_sa driver.

The following required modules are pre-installed in the Skills Network Labs environment. However if you run this notebook commands in a different Jupyter environment (e.g. Watson Studio or Ananconda) you may need to install these libraries by removing the # sign before !pip in the code cell below.