Project

General

Profile

View metrics with jupyterlab » History » Version 4

« Previous - Version 4/12 (diff) - Next » - Current version
Pengfei Ding, 10/02/2019 03:49 PM


Getting setup with docker and jupyterlab

Assuming you have docker ready, the following script will pull start a docker container (by default named as "metrics_nb"), and start jupyter notebook in the container. The URL to the jupyter notebook instance will be displayed in your terminal.

wget http://home.fnal.gov/~dingpf/start_artdaq_metrics_nb.sh
chmod +x start_artdaq_metrics.sh

Then run it with:

# ./start_artdaq_metrics_nb.sh <metrics_dir_path> <notebook_dir_path> [notebook_name]
# e.g.
./start_artdaq_metrics_nb.sh /home/ron/work/artdaqPrj/demo2-develop/daqlogs/metrics /home/dingpf/notebooks

Once the container is up, you can open a browser to the link displayed in your terminal, open and run the "notebooks/Plot_metrics-single_plot.ipynb" notebook. There will be two drop-down boxes asking you which log file you want to parse and which metrics you want to plot.