노트: Jupyter Lab에 gspread와 oauth2client를 넣는 방법

2502 단어 JupyterLab


Dockerfile
FROM ubuntu:20.04

RUN apt update \
 && apt install -y sudo wget vim curl gawk make gcc \
 && apt clean

RUN wget -q "https://repo.continuum.io/archive/Anaconda3-2019.03-Linux-x86_64.sh" \
  && sh ./Anaconda3-2019.03-Linux-x86_64.sh -b \
  && rm -f Anaconda3-2019.03-Linux-x86_64.sh \
  && curl -sL "https://deb.nodesource.com/setup_10.x" | bash -
RUN apt install -y nodejs \
  && apt clean

ENV PATH=$PATH:/root/anaconda3/bin

RUN pip install gspread \
 && pip install oauth2client

WORKDIR /workspace
VOLUME /workspace
EXPOSE 8888

CMD ["jupyter-lab", "--ip=0.0.0.0","--port=8888" ,"--no-browser", "--allow-root", "--LabApp.token=''"]

빌드
docker build . -t jupyter

시작
docker run -it --rm -p 8888:8888 -v $(pwd):/workspace jupyter
  • http://localhost:8888

  • 방문

    좋은 웹페이지 즐겨찾기