Kestrel Jupyter Kernel
Project description
This repository contains two Python packages:
kestrel_jupyter_kernel
kestrel_ipython
Install and Setup
To install the released version:
$ pip install kestrel-jupyter
$ python -m kestrel_jupyter_kernel.setup
To install the nightly built version:
$ git clone git://github.com/opencybersecurityalliance/kestrel-jupyter
$ cd kestrel-jupyter
$ pip install .
$ python -m kestrel_jupyter_kernel.setup
How to Use Kestrel Jupyter Notebook Kernel
Start Jupyter with jupyter nbclassic and start a new notebook with the kestrel kernel. Note if you are using jupyter lab, most functionalities are there such as code execution, error prompot, and context-aware auto-complete, but the syntax highlighting is not ported from our Jupyter Notebook environment to Jupyter Lab yet.
Write your hello world hunt:
newvar = NEW process ["cmd.exe", "reg.exe"]
DISP newvar
Check Kestrel documentation for more.
How to Use ipython Magic Function
import kestrel_ipython
Then you can write any code in single-line or multi-line Kestrel in Python:
%%kestrel
newvar = NEW process ["cmd.exe", "reg.exe"]
DISP newvar
Uninstall Kestrel Jupyter Kernel
List all Jupyter kernels installed:
$ jupyter kernelspec list
Uninstall Kestrel kernel:
$ jupyter kernelspec uninstall kestrel
How to Contribute
As a component in the Kestrel runtime, this repo follows the contributing guideline and governance documentation in the main kestrel-lang repo.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for kestrel_jupyter-1.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 970e526a3018201bb625e3da24888d025f1238ee23ba3b821d9ee84fe0cc4f7f |
|
MD5 | c0e1ebbb77e392e18abf4b4a9bce7169 |
|
BLAKE2b-256 | dcc498ae3e254b2066f000e70089f14a0a127a8cd52055fc98bfee8c148527dd |