How to install bamboolib

In order to avoid potential conflicts with other packages when installing bamboolb, 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.

So what next?

  • If you want to install bamboolib with a new Anaconda environment, please go here.

  • If you want to install bamboolib with a new virtualenv, please to here.

  • If you want to install bamboolib inside your base environment, then continue reading.

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

pip install --upgrade bamboolib --user
# 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.

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:

# Create conda environment
conda create -n bamboolib python=3.7 -y
# Activate the environment
conda activate bamboolib
# Add the IPython kernel to Jupyter
conda install jupyter -y
conda install ipykernel -y
python -m ipykernel install --user --name bamboolib
# Run this if you use Jupyterlab
conda install jupyterlab -y
# Install bamboolib ...
pip install --upgrade bamboolib --user
# Jupyter Notebook extensions
python -m bamboolib install_nbextensions
# Run this if you use Jupyterlab: 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:

# 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 --upgrade bamboolib --user
# Jupyter Notebook extensions
python -m bamboolib install_nbextensions
# JupyterLab extensions
python -m bamboolib install_labextensions

Afterwards, you can test bamboolib.