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, 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.
- 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
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
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
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
Last modified 1yr ago