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:
- Setup a Python virtual environment (e.g. https://docs.python.org/3/tutorial/venv.html)
- Run
pip install -r requirements.txt
- 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.
- Setup a Python virtual environment (e.g. https://docs.python.org/3/tutorial/venv.html)
- Run
pip install -r requirements.txt
- 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:
- Start the web server above
cd slice-viewer
npm install
npm start
- Visit http://localhost:3000 and you should see the sliceplorer application