Intro

We offer a Jupyter notebook which provides an interative introduction to the AllegroGraph Python client.

Setup and Installation

The following instructions assume that you have access to an x86-64 Linux system.

Download and install miniconda:

Miniconda is a Python distribution. Download and install it using the following commands:

curl -O -f https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh  
bash Miniconda3-latest-Linux-x86_64.sh -b  
rm -f Miniconda3-latest-Linux-x86_64.sh 

Download and AllegroGraph

Use the following commands to download AllegroGraph and to install into the /tmp/ag641 directory.

curl -O -f http://franz.com/ftp/pri/acl/ag/ag6.4.1/linuxamd64.64/agraph-6.4.1-linuxamd64.64.tar.gz  
tar xf agraph-6.4.1-linuxamd64.64.tar.gz  
rm -fr /tmp/ag641  
agraph-6.4.1/install-agraph /tmp/ag641 -- --non-interactive --super-user test --super-password xyzzy  
rm -fr agraph-6.4.1 agraph-6.4.1-linuxamd64.64.tar.gz 

Start AG server

/tmp/ag641/bin/agraph-control --config /tmp/ag641/lib/agraph.cfg start 

Download the notebook

curl -O -f https://franz.com/ftp/pub/agraph/python-client/ag-jupyter.tar.gz  
tar xf ag-jupyter.tar.gz  
rm -f ag-jupyter.tar.gz 

Set up environment for notebook

Use the following command to prepare an Python environment for the Jupyter notebook software. Note that this command takes a while to operate.

~/miniconda3/bin/conda create -n ag-notebook -y -c franzinc -c conda-forge jupyter agraph-python ipyleaflet 

Activate the environment

source ~/miniconda3/bin/activate ag-notebook 

Start Jupyter Notebook

cd ag-jupyter && jupyter notebook 

A browser window will automatically be launched. If that does not work, visit the URL presented on the terminal.

In the browser, click on tutorial.ipynb

When done, terminate the notebook server by hitting control-C.