Sliceplorer installation

Sliceplorer consists of three parts: a set of Python scripts to sample the function, a Flask-based webserver to serve the slice data, and a webapp for the interactive viewer. The code can be checked out from GitHub at https://github.com/gabysbrain/sliceplorer.

Slice generator

The slice generator is written in Python. It depends on a number of packages which can be installed via pip. The slice generator requires Python 3.6.

Within the sampling folder:

  1. Setup a Python virtual environment (e.g. https://docs.python.org/3/tutorial/venv.html)
  2. Run pip install -r requirements.txt
  3. Then you should be able to run the sampling script, e.g. python ortho_slices.py

Web server

The web server is written in Python. It depends on a number of packages which can be installed via pip. The web server requires Python 3.6.

  1. Setup a Python virtual environment (e.g. https://docs.python.org/3/tutorial/venv.html)
  2. Run pip install -r requirements.txt
  3. Try starting the server: python stats_server.py

Interactive viewer

The interactive viewer is written in purescript and runs in a web browser. npm is used for building the project.

From the main repo:

  1. Start the web server above
  2. cd slice-viewer
  3. npm install
  4. npm start
  5. Visit http://localhost:3000 and you should see the sliceplorer application