This is a simple example to show how to write an external greenflow plugin. greenflow take advantage of the entry point inside the setup.py file to register the plugin. greenflow can discover all the plugins that has the entry point group name greenflow.plugin. Check the setup.py file to see details.
conda create -n test python=3.8To install the greenflow graph computation library, run:
pip install greenflowOr install greenflow at the greenflow directory:
pip install .To install greenflowlab JupyterLab plugin, make sure nodejs of version [12^14^15] is installed. E.g:
conda install -c conda-forge nodejs=12.4.0Then install the greenflowlab:
pip install greenflowlabOr install greenflowlab at the greenflowlab directory:
pip install .To install the external plugin, in the plugin diretory, run following command
pip install .After launching the JupyterLab by,
jupyter-lab --allow-root --ip=0.0.0.0 --no-browser --NotebookApp.token=''You can see the DistanceNode and PointNode under the name custom_node in the menu.