Project

General

Profile

View metrics with jupyterlab » History » Version 3

« Previous - Version 3/12 (diff) - Next » - Current version
Ron Rechenmacher, 10/02/2019 12:15 PM


View metrics with jupyterlab

setup python v2_7_15a            # optional
pip install --user virtualenv    # optional
pip install --user jupyter\>5.0
virtualenv blah          # blah is a name you give to your virtual environment
export PATH=$HOME/.local/bin:$PATH

Install Jupyterlab on mu2edaq

Setup python

source /mu2e/ups/setup
setup python v2_7_14b

Install python virtualenv

pip install --user virtualenv

Modify PATH and LD_LIBRARY_PATH

export PATH=$HOME/.local/bin:$PATH
export LD_LIBRARY_PATH=$HOME/.local/lib:$LD_LIBRARY_PATH

Create new virtual env, activate it, and install jupyterlab

virtualenv my_new_env                 # create virtualenv in your $HOME
du -sck $HOME/my_new_env              # see how much crap go installed -- should only be about 14 MB
source $HOME/my_new_env/bin/activate  # deactivate will... deactivate
pip install jupyterlab                # takes many minutes, installs "a lot of stuff" 

Start jupyterlab

# next 3 lines if fresh login
source /mu2e/ups/setup
setup python v2_7_14b
source $HOME/my_new_env/bin/activate

jupyter-lab --no-browser
# then copy the URL from the terminal and open it in the browser of your choice