Skip to content

LavaVu and IPython Install Recipe

Owen Kaluza edited this page Dec 7, 2017 · 6 revisions

LavaVu with IPython Notebooks install recipe

First install pip if it is not already installed:

sudo easy_install pip

Using a python virtualenv (optional) keeps required packages isolated per project

pip install virtualenv

Create a virtual env called 'python-default' and activate it:

virtualenv python-default
source ~/python-default/bin/activate;

Install required packages, scipy is optional but useful: (If not using virtualenv, use pip install --user)

pip install ipython jupyter numpy scipy

Install LavaVu

pip install lavavu

(Or alternatively, build from source)

git clone https://github.com/okaluza/LavaVu
cd LavaVu
make -j4

Test with python (ESC,ENTER to exit interactive mode):

python
> import lavavu
> lv = lavavu.Viewer()
> lv.test()
> lv.interactive()

Test with IPython in Jupyter, this will open the notebook interface in a web browser window Example notebooks can be found in the 'notebooks' directory

jupyter notebook

(ctrl+c in terminal to exit)

Remember to activate the virtual env before using at a later time:

source ~/python-default/bin/activate;
cd ~/LavaVu
jupyter notebook