Skip to content

Latest commit

 

History

History
48 lines (36 loc) · 1.08 KB

File metadata and controls

48 lines (36 loc) · 1.08 KB

How to run the Jupyter notebook

Create a virtual environment and use it in Jupyter Lab

  1. Create a virtual environment
python -m venv xgboost-env
  1. Activate it
source xgboost-env/bin/activate
  1. Install the Jupyter kernel using the Python interpreter in this environment
python -m ipykernel install --user \
  --name xgboost-env \
  --display-name "Python (xgboost-env)"
  1. Install development dependencies
pip install -r requirements-dev.txt
  1. Additionally, install the seldon_core package
  • You can either install it with pip from pypi with pip install seldon-core
  • Or you can install it from source by:
    • Navigating to the /python folder and make install
  1. Install the package dependencies
pip install -r ./xgboostserver/requirements.txt

Open Jupyter Lab and run the cells

  1. Open Jupyter Lab
jupyter lab
  1. Navigate to the browser, then to the test folder and select the notebook

  2. From the top right, choose the Kernel called Python (xgboost-env)

  3. Run the cells one after the other