b
b
bamboolib
Search
⌃K

How to install bamboolib

Using a virtual environment

In order to avoid potential conflicts with other packages when installing bamboolb, it is strongly recommended to use a virtual environment, e.g. virtualenv, poetry, 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?

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.

Install using poetry

Open your terminal and run the following:
# Create a new project
poetry new bamboolib_venv
# Go into the new environment
cd bamboolib_venv
# Activate the environment
poetry shell
# Install bamboolib ...
poetry add bamboolib
poetry install
# Jupyter Notebook extensions
python -m bamboolib install_nbextensions
# JupyterLab extensions
python -m bamboolib install_labextensions
Afterwards, you can test bamboolib.