Skip to content

Instantly share code, notes, and snippets.

@cocodrips
Last active October 24, 2018 09:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cocodrips/cabd4d8051bd50e6538812f3a406a5c8 to your computer and use it in GitHub Desktop.
Save cocodrips/cabd4d8051bd50e6538812f3a406a5c8 to your computer and use it in GitHub Desktop.
Setup kaggle server

Setup

mkdir workspace
mkdir src 
sudo emacs /etc/systemd/system/notebook.service
...

LightGBM

sudo apt-get install -y --no-install-recommends git cmake build-essential libboost-dev libboost-system-dev libboost-filesystem-dev
cd src
git clone --recursive https://github.com/Microsoft/LightGBM
cd LightGBM
mkdir build ; cd build
cmake -DUSE_GPU=1 -DOpenCL_LIBRARY=/usr/local/cuda/lib64/libOpenCL.so -DOpenCL_INCLUDE_DIR=/usr/local/cuda/include/ ..
make -j$(nproc)

install

pip install pandas numpy seaborn matplotlib jupyternotify scikit-learn
# /etc/systemd/system/notebook.service
# http://ermaker.github.io/blog/2017/01/12/disable-password-of-jupyter.html
[Unit]
Description=Jupyter notebook
[Service]
Type=simple
User=root
WorkingDirectory=/home/cocodrips/workspace
#ExecStartPre=source
ExecStart=/home/cocodrips/workspace/venv/bin/jupyter notebook --allow-root --port 8800 --Noteboo\
kApp.token= --NotebookApp.ip=0.0.0.0
Restart=on-failure # or always, on-abort, etc
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment