b
b
bamboolib
Search…
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):
1
pip install --upgrade bamboolib --user
2
​
3
# Jupyter Notebook extensions
4
python -m bamboolib install_nbextensions
5
​
6
# JupyterLab extensions
7
python -m bamboolib install_labextensions
Copied!
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:
1
# Create conda environment
2
conda create -n bamboolib python=3.7 -y
3
​
4
# Activate the environment
5
conda activate bamboolib
6
​
7
# Add the IPython kernel to Jupyter
8
conda install jupyter -y
9
conda install ipykernel -y
10
python -m ipykernel install --user --name bamboolib
11
​
12
# Run this if you use Jupyterlab
13
conda install jupyterlab -y
14
​
15
# Install bamboolib ...
16
pip install --upgrade bamboolib --user
17
​
18
# Jupyter Notebook extensions
19
python -m bamboolib install_nbextensions
20
​
21
# Run this if you use Jupyterlab: JupyterLab extensions
22
python -m bamboolib install_labextensions
Copied!
Finally, you can test bamboolib here.

Installation using virtualenv

In the terminal (or Anaconda Prompt if you use Windows) enter the following:
1
# Create virtual env
2
virtualenv bamboolib_venv
3
​
4
# Activate the environment
5
source bamboolib_venv/bin/activate
6
​
7
# Add the IPython kernel to Jupyter
8
ipython kernel install --user --name=bamboolib_venv
9
​
10
# Install bamboolib ...
11
pip install --upgrade bamboolib --user
12
​
13
# Jupyter Notebook extensions
14
python -m bamboolib install_nbextensions
15
​
16
# JupyterLab extensions
17
python -m bamboolib install_labextensions
Copied!
Afterwards, you can test bamboolib.

Install using poetry

Open your terminal and run the following:
1
# Create a new project
2
poetry new bamboolib_venv
3
​
4
# Go into the new environment
5
cd bamboolib_venv
6
​
7
# Activate the environment
8
poetry shell
9
​
10
# Install bamboolib ...
11
poetry add bamboolib
12
poetry install
13
​
14
# Jupyter Notebook extensions
15
python -m bamboolib install_nbextensions
16
​
17
# JupyterLab extensions
18
python -m bamboolib install_labextensions
Copied!
Afterwards, you can test bamboolib.
Last modified 2mo ago