Skip to content

OutlierVentures/ANVIL-Live

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ANVIL-Live

Live code demo of the ANVIL API for electric cars.

Requirements

  • Linux/MacOS and Docker.

Install

  1. ./install.sh
  2. In ANVIL/anvil/setup.py add the following before the line defining _pool:
    pool_list = await pool.list_pools()
    for pool_dict in pool_list:
        if pool_dict['pool'] == name:
            return name, 1
    

Run

Start a Fetch.AI node and Sovrin node pool as specified in the ANVIL repo. Note if you have installed ANVIL previously you should start these from the original ANVIL folder.

cd ANVIL/anvil
jupyter notebook

Host

You can host the notebook by setting c.NotebookApp.ip = '0.0.0.0' in .jupyter/jupyter_notebook_config.py. Note that this grants anyone access to arbitrary code execution, so a precompiled mock alternative (below) is recommended. See here for using a full live executable.

The alternative is a HTML-ified notebook where you have the outputs prepared beforehand, and display them as the user 'runs' the notebook. Just host demo.html (and the img folder) for this safe version.

About

Live code demo of the ANVIL API for electric cars.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published