GF Kernel
gf_kernel is a GF kernel for Jupyter.
Prerequisites
If you haven't installed GF already, get it from the official download website.
For graph visualization GF uses graphviz, so please make sure you have it installed:
sudo apt install graphviz
or under Mac OS X with homebrew:
brew install graphviz
Installation
You can either install the kernel from the source repository:
git clone https://github.com/kwarc/gf_kernel
cd gf_kernel
pip install .
or install it directly from pip:
pip install gf-kernel
Afterwards, install the kernel module with:
python -m gf_kernel.install
Usage
You're now ready to go and can start a Jupyter notebook with:
jupyter notebook
Select the gf_kernel as kernel in your notebook.
The kernel supports all of the GF shell commands.
Output files produced by these commands will be placed into the current directory.
The kernel can also be used to define new grammars, which are immediately imported for usage upon defining. If you would like to have line numbers for editing your code you can use the Juypter shortcut Esc+L to enable them.
In addition to the GF shell commands the kernel supports the following commands:
view: show the graph(s) generated by the specified GF shell commandhelp: shows the help messageexport: saves the specified grammar in the current diretoryclean: removes all.dot,.pngand.gfofiles from the current directory
Please refer to the tutorial notebook to see how exactly they are used.
This package requires Python 3.
Metadata
Release files for gf-kernel 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gf_kernel-1.0.0.tar.gz | 15.5 kB | Without provenance | Details for gf_kernel-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gf_kernel-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for gf_kernel-1.0.0-py3-none-any.whl |
Total release size: 44.0 kB
Release files / gf_kernel-1.0.0.tar.gz
| Download URL | gf_kernel-1.0.0.tar.gz |
|---|---|
| Size | 15.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a3e499580cb1b5c77a8e2078f2ba8a92db58af78d99c3b5d5a003be767a46145
|
|
BLAKE2b-256 checksum How to use checksums |
2629f221fa1da96bbd93180fed121f83e02230a579b12b48433d2bdf3e63fe1b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1
|
Release files / gf_kernel-1.0.0-py3-none-any.whl
| Download URL | gf_kernel-1.0.0-py3-none-any.whl |
|---|---|
| Size | 28.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
103e2eb1c4e9ae1e9f9181530d133f77c815ff042dfa1a378b9f682322d1cd0f
|
|
BLAKE2b-256 checksum How to use checksums |
348d30b38eb76824cc000b2288b4c3a6c72a146955315347fe2d884fd9b45f95
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1
|
Security for gf-kernel 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.