/sqlite3-kernel

A Jupyter kernel for the sqlite3 shell. This project was just a proof of concept. You should probably check out xeus-SQLite: https://blog.jupyter.org/a-jupyter-kernel-for-sqlite-9549c5dcf551

Primary LanguagePythonBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

A simple Jupyter kernel for SQLite3

This requires IPython 3 and the sqlite3 command line tool to be installed.

To install:

python setup.py install
python -m sqlite3_kernel.install

To use it, run one of:

jupyter notebook
# In the notebook interface, select SQLite3 from the 'New' menu
jupyter qtconsole --kernel sqlite3
jupyter console --kernel sqlite3

For details of how this works, see the Jupyter docs on wrapper kernels, and Pexpect's docs on the replwrap module

Based on the Bash kernel

Note: this was just a quick and dirty experiment in writing Jupyter kernels. I decided to publish it on Github in the hopes that others find it useful. It may not work for everyone, but feel free to use this as a base for something more robust.