Can be used to serve JSROOT and ROOT files on localhost httpserver.
- Checkout jsroot in working directory like
~/work:
[shell] mkdir ~/work
[shell] cd ~/work
[shell] git clone https://github.com/root-project/jsroot.git- Copy some ROOT files to
filessub-directory:
[shell] mkdir ~/work/files
[shell] cp $ROOTSYS/tutorials/hsimple.root ~/work/files/- Start server from working directory:
[shell] cd ~/work
[shell] python3 jsroot/server/server.py- Open local or remote ROOT files with the link:
http://localhost:8000/jsroot/?file=../files/hsimple.root&item=hpxpy&opt=colz
http://localhost:8000/jsroot/?file=https://root.cern/js/files/hsimple.root&item=hpxpy&opt=colz
- Also test examples.htm and api.htm:
http://localhost:8000/jsroot/examples.htm
http://localhost:8000/jsroot/api.htm