https://github.com/anas436/accessing-databases-with-sqlite3-and-sqlitemagic
https://github.com/anas436/accessing-databases-with-sqlite3-and-sqlitemagic
jupyter-notebook pandas python3 seaborn sql sqlite3 sqlitemagic
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/anas436/accessing-databases-with-sqlite3-and-sqlitemagic
- Owner: Anas436
- Created: 2022-05-30T17:13:08.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-30T17:18:26.000Z (about 4 years ago)
- Last Synced: 2025-03-27T10:48:08.828Z (over 1 year ago)
- Topics: jupyter-notebook, pandas, python3, seaborn, sql, sqlite3, sqlitemagic
- Language: Jupyter Notebook
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Accessing-Databases-with-SQLite3-and-SQLiteMagic
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 "%". Above, I have used 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.
I have create a table, insert some data, and retrieve the results using the SQLite and SQLitgeMagic database with python in the Skills Network Lab environment.