A Jupyter kernel for SQLite. I made this primarily for my personal use, so there may be rough edges.
Check out the demo notebook to see it in action.
Run .help
to see the additional special commands available.
See the SQLite syntax reference for help with the SQL language.
Preferably, use Nix flakes:
nix profile install github:zombiezen/sqlite-notebook
Make sure that $HOME/.nix-profile/share/jupyter
is in the JUPYTER_PATH
.
Once installation is complete, SQLite will show up as a kernel that can be used for notebooks.
I only guarantee that this project will build with Nix (since I can guarantee the libraries are set up consistently), but if you want to build in a different way, make sure you have the following installed:
Then run:
cargo build --release &&
mkdir -p ~/.local/share/jupyter/kernels/sqlite-notebook &&
bash make_kernel_json.sh target/release/sqlite-notebook > \
~/.local/share/jupyter/kernels/sqlite-notebook/kernel.json
Assuming you already have Jupyter installed,
the kernel will show up in Jupyter Notebook.
You can also use jupyter console --kernel sqlite-notebook
for a CLI REPL.
See the SQLite syntax reference
and run .help
to see the additional commands available in the notebook.
You can use this kernel in Visual Studio Code without installing Jupyter.
- Open the Command Palette (Ctrl-Shift-P, or ⌘-Shift-P on macOS).
- Search for and select "Create: New Jupyter Notebook".
- Open the kernel picker and select "Jupyter Kernel..." → "SQLite".