Skip to content

Latest commit

 

History

History
124 lines (103 loc) · 3.03 KB

File metadata and controls

124 lines (103 loc) · 3.03 KB

Install RootInteractive package

Steps:

export PYTHONPATH=$PYTHONPATH:$HOME/github/RootInteractive
  • WITHOUT defining path - classes can not be used

Install virtualenv for python3:

In the past (for python2) I used to install virtualenvwrapper Since aliBuild move to the Python3 - this recipe did not work.

For new aliBuild I install virtual env in software directory:

  • create python3 virtual environment with name virtualenv3
python3 -m venv virtualenv3
  • activate environment
source virtualenv3/bin/activate
  • or use alias
    alias venv3="source $HOME/software/virtualenv3/bin/activate"

Install root python dependencies

Following instruction in https://alice.its.cern.ch/jira/browse/ATO-448

pip install pip -U
pip install aliBuild
pip install matplotlib numpy certifi ipython==5.1.0 ipywidgets ipykernel notebook metakernel pyyaml

Install jupyter lab and interactive packages:

Following instructions in: https://alice.its.cern.ch/jira/browse/PWGPP-485

all done in virtual environment to do not mess with system unusable pip

pip install jupyter jupyterlab
pip install tensorflow keras
pip install sklearn
pip install scikit-garden
pip install beakerx pandas ipywidgets
pip install plot runtime
pip install plotly
pip install requests
pip install bqplot
pip install qgrid
pip install ipympl
pip install bokeh
pip install anytree
pip install forestci
pip install pytest

additional dependency on tkinter

  • not clear how to install it
  • for ubunt we used:
apt-get install python-tk
  • generic solution to be find - or dependency to be removed

Install lab extension

jupyter labextension list

# Using Ubuntu
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
  • install extensions for jupyter-lab
jupyter labextension install @jupyter-widgets/jupyterlab-manager  #OK
jupyter labextension install bqplot   #OK
jupyter labextension install qgrid@1.0.1-beta.0
jupyter labextension install jupyterlab_bokeh      #OK
jupyter labextension install jupyter-matplotlib
  • check list
jupyter labextension list
JupyterLab v0.33.12
Known labextensions:
   app dir: /home/miranov/.virtualenvs/our_new_env/share/jupyter/lab
@jupyter-widgets/jupyterlab-manager
        @jupyter-widgets/jupyterlab-manager v0.37.0  enabled  OK
bqplot
        bqplot v0.4.3  enabled  OK
jupyter-matplotlib
        jupyter-matplotlib v0.3.0  enabled  OK
jupyterlab_bokeh
        jupyterlab_bokeh v0.6.1  enabled  OK
qgrid
        qgrid v1.0.1-beta.0  enabled  OK