A Jupyter kernel for Apache Cassandra
To install:
pip install cqljupyter
To configure the Cassandra host or IP address:
python -m cqljupyter.install [<hostname> <port>] [--ssl] [-u user] [-p password]
You can always rerun the above command to change the connection. It's best to restart Jupyter after running it. You can often get away with closing your notebook, and then refreshing the main Jupyter page too, but that's error-prone.
then start the notebook:
jupyter notebook
In the notebook interface, select CQL from the New menu
To run the sample CQL:
jupyter notebook Sample.ipynb
All standard CQL syntax is supported since this package reuses the CQLSH python module.
Use the TAB key to invoke auto-complete
If you start a cell with %%html, the html will be returned and rendered
Build using:
python -m build
-
The cqlsh.py v6.1.0 script was copied from Apache Cassandra 4.1
https://github.com/apache/cassandra/blob/trunk/bin/cqlsh.py
For details of how Jupyter kernels work, see these references:
This package was developed by Brad Schoening for Python 3. It is based upon earlier work by Steve Lowenthal and uses the open source Apache Cassandra CQLSH library.
This project is licensed under the terms of the Apache 2.0 license.