CQL Kernel for Jupyter based on cqlsh
Project description
A Jupyter kernel for the Apache Cassandra Database
To install::
pip install cql_kernel
python -m cql_kernel.install [<cassandra hostname>]
You can always rerun the the above command to change the hostname. It's best to restart Jupyter after running it.
You can get away with closing your notebook, and then refreshing the main Jupyter page too, but that's error-prone.
To use it, run one of::
ipython notebook
# In the notebook interface, select CQL from the 'New' menu
ipython qtconsole --kernel cql
ipython console --kernel cql
Syntax::
All regular cqlsh syntax is supported.
Auto-complete::
Use the <TAB> key to invoke auto-complete
%%html magic::
If you start a cell with %%html, the html will be returned and rendered
For details of how this works, see the Jupyter docs on `wrapper kernels
<http://jupyter-client.readthedocs.org/en/latest/wrapperkernels.html>`_, and
Pexpect's docs on the `replwrap module
<http://pexpect.readthedocs.org/en/latest/api/replwrap.html>`_
To build::
python setup.py sdist upload
python setup.py bdist upload
To install::
pip install cql_kernel
python -m cql_kernel.install [<cassandra hostname>]
You can always rerun the the above command to change the hostname. It's best to restart Jupyter after running it.
You can get away with closing your notebook, and then refreshing the main Jupyter page too, but that's error-prone.
To use it, run one of::
ipython notebook
# In the notebook interface, select CQL from the 'New' menu
ipython qtconsole --kernel cql
ipython console --kernel cql
Syntax::
All regular cqlsh syntax is supported.
Auto-complete::
Use the <TAB> key to invoke auto-complete
%%html magic::
If you start a cell with %%html, the html will be returned and rendered
For details of how this works, see the Jupyter docs on `wrapper kernels
<http://jupyter-client.readthedocs.org/en/latest/wrapperkernels.html>`_, and
Pexpect's docs on the `replwrap module
<http://pexpect.readthedocs.org/en/latest/api/replwrap.html>`_
To build::
python setup.py sdist upload
python setup.py bdist upload
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cql_kernel-0.2.3.tar.gz
(87.6 kB
view hashes)
Built Distribution
Close
Hashes for cql_kernel-0.2.3.macosx-10.10-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e2e5b16a943fecfee62b9e2843c8db75e18ebdf70480a2b3f2b15e53ac55766 |
|
MD5 | 4081fa71934c2117c55ac51c501fa4c0 |
|
BLAKE2b-256 | 4f97ae3e823330cafac430fba46169bc935207b29ef2d8237de5603989286894 |