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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kestrel-jupyter-1.0.8.tar.gz.
File metadata
- Download URL: kestrel-jupyter-1.0.8.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9a0d0e00d9ab83f40f910211d2390f7fb1de9ed18a1a1f1ac3dc49bb6f8875a
|
|
| MD5 |
3ed8f79b194b4a0e7f0a87816848bb67
|
|
| BLAKE2b-256 |
e03e16f91415897ed3a1e8caa9a01e2a8449bc2165fa68b87f96d0185b1c98f3
|
File details
Details for the file kestrel_jupyter-1.0.8-py3-none-any.whl.
File metadata
- Download URL: kestrel_jupyter-1.0.8-py3-none-any.whl
- Upload date:
- Size: 12.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f5edc47f47ebefe0721d385c759b326354bd50e38d8945989eb1dc4892e613a
|
|
| MD5 |
54c958effd446f73fe348abbf80a35fd
|
|
| BLAKE2b-256 |
80e690d80a95e8c5eaf8b4ccfa9f11a86b0f7af390d7a45417fdd0da682e447e
|