brownan / 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

Repository from Github https://github.combrownan/sqlite3-kernelRepository from Github https://github.combrownan/sqlite3-kernel

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.

About

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

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 100.0%