How to install bamboolib

Install bamboolib for Jupyter Notebook or Jupyter Lab by running the code below in your terminal (or Anaconda Prompt for Windows):

pip install bamboolib
# Jupyter Notebook extensions
python -m bamboolib install_nbextensions
# JupyterLab extensions
python -m bamboolib install_labextensions

After you have installed bamboolib, you can go here to test bamboolib.

In order to avoid potential conflicts with other packages it is strongly recommended to use a virtual environment, e.g. virtualenv or conda environments. Using an isolated environment makes it possible to install a specific version of bamboolib and its dependencies independently of any previously installed Python packages.

Installation with Anaconda Virtual Environment

If you are using Anaconda, you can create a virtual environment and install bamboolib with the code below.

In the terminal (or Anaconda Prompt if you use Windows) enter the following where bamboolib_venv is the name of the virtual environment. Please change it if you want name your virtual environment differently.

# Create conda environment
conda create -n bamboolib_venv python=3.7 -y
# Activate the environment
conda activate bamboolib_venv
# Add the IPython kernel to Jupyter
conda install ipykernel -y
python -m ipykernel install --user --name bamboolib_venv
# Install bamboolib ...
pip install bamboolib
# Jupyter Notebook extensions
python -m bamboolib install_nbextensions
# JupyterLab extensions
python -m bamboolib install_labextensions

Finally, you can test bamboolib here.

Installation using virtualenv

In the terminal (or Anaconda Prompt if you use Windows) enter the following where bamboolib_venv is the name of the virtual environment. Please change it if you want name your virtual environment differently.

# Create virtual env
virtualenv bamboolib_venv
# Activate the environment
source bamboolib_venv/bin/activate
# Add the IPython kernel to Jupyter
ipython kernel install --user --name=bamboolib_venv
# Install bamboolib ...
pip install bamboolib
# Jupyter Notebook extensions
python -m bamboolib install_nbextensions
# JupyterLab extensions
python -m bamboolib install_labextensions

Afterwards, you can test bamboolib.