You can use your own conda environments within Jupyterhub as a Kernel. Make sure the library "ipykernel" is installed in your environment.
If not, you will have to install it before you proceed : conda install ipykernel
# Activate your environment
conda activate yourEnvName
# Add Kernel
python -m ipykernel install --user --name yourEnvName --display-name "Python (yourEnvName)"
Note: This Kernel will be visible on jupyterhub only for your own user
To list kernels : jupyter kernelspec list
If you want to uninstall a kernel from jupyterhub : jupyter kernelspec remove yourEnvName
Note : Here you are only installing your environment from Jupyterhub. You are not removing you actual enviroment from conda.
jupyter lab --generate-config
vi .jupyter/jupyter_notebook_config.py
%load_ext autoreload
%autoreload 2
import sys
from pathlib import Path
sys.path.append(str(Path("../src").resolve()))
from data import test
import warnings
warnings.filterwarnings('ignore')
pd.options.display.max_rows = None
pd.options.display.max_columns = None