Jupyter Notebook extension GUI node editor
Project description
ailab-lite
Jupyter Notebook extension GUI node editor
Installation
To install use pip:
$ pip install ailab_lite
Instructions:
Jupyter Notebook/Lab:
Import node editor widget:
from ailab_lite import NodeEditorWidget
Import pandas:
import pandas as pd
Decalare dataset:
example = pd.read_csv("example.csv")
Run widget:
NodeEditorWidget(env=globals())
We initialize it with globals()
so all previously defined datasets are available in node editor.
We can pass workflow definition directly when initializing widget:
NodeEditorWidget(env=globals(), workflow_definition="definition")
Buttons
Buttons in editor are revealed after Dataset and at least one Component are used.
Running example
The examples
directory contain example of widget usage. It contain predefined workflow.
To run it, simply cd
to the directory and run jupyter notebook
or jupyter lab
command.
(In order to run widget in the example first time it is required to run all cells. Other way the widget won't render)
Development:
For a development installation (requires Node.js and Yarn version 1),
$ git clone https://github.com/fathoms-io/ailab-lite.git
$ cd ailab-lite
$ pip install -e .
$ jupyter nbextension install --py --symlink --overwrite --sys-prefix ailab_lite
$ jupyter nbextension enable --py --sys-prefix ailab_lite
When actively developing your extension for JupyterLab, run the command:
$ jupyter labextension develop --overwrite ailab_lite
Then you need to rebuild the JS when you make a code change:
$ cd js
$ yarn run build
You then need to refresh the JupyterLab page when your javascript changes.
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
File details
Details for the file ailab_lite-0.1.5.tar.gz
.
File metadata
- Download URL: ailab_lite-0.1.5.tar.gz
- Upload date:
- Size: 2.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | da98033041e942dd23624d950317145a41c2380ebdda49c3961ea5628ab66a4a |
|
MD5 | 482aba4f23b3b2cb2d971ace37fbff68 |
|
BLAKE2b-256 | 0ca2312ff0afdeb8c39be466580124246b0e2b7a87b155c4c9b5552096e40e58 |
File details
Details for the file ailab_lite-0.1.5-py2.py3-none-any.whl
.
File metadata
- Download URL: ailab_lite-0.1.5-py2.py3-none-any.whl
- Upload date:
- Size: 3.8 MB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b48b53caca32b54c5853c1a5f0b0fbdd7986a7ef53fc837f288a164e9fc8ab50 |
|
MD5 | 63129af0e1e45097f3962491c61c8be7 |
|
BLAKE2b-256 | 0db698baa728003a77953d62acb92e4c60842db5e8d6f1ef5fc2e439a99cb8da |