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
- Host: GitHub
- URL: https://github.com/anas436/accessing-ibm-db2-databases-with-sql-magic
- Owner: Anas436
- Created: 2022-05-30T16:42:59.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-30T16:54:41.000Z (over 3 years ago)
- Last Synced: 2025-03-27T10:48:08.851Z (11 months ago)
- Topics: ipython-sql, jupyter-notebook, pandas, python3, seaborn, sql
- Language: Jupyter Notebook
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.