--

Hello Fabre,

In how far doesn’t it work? Is there a certain point where the setup stops or breaks? What does the output of Docker say?

There are two things you could try:

  1. Start with a ubuntu base. The leandatascience/jupyterlab-ds:latest is the following. Insert the installation of plotly at the right step. Maybe you need to change some versions?

FROM ubuntu:18.04
ENV DEBIAN_FRONTEND noninteractive
ENV DEBCONF_NONINTERACTIVE_SEEN true
RUN apt-get update
RUN apt-get -y upgrade
RUN apt-get install -y build-essential \
checkinstall \
libreadline-gplv2-dev \
libncursesw5-dev \
libssl-dev \
libsqlite3-dev \
tk-dev \
libgdbm-dev \
libc6-dev \
libbz2-dev \
zlib1g-dev \
openssl \
libffi-dev \
python3-dev \
python3-setuptools \
wget
RUN mkdir /tmp/Python37 \ && cd /tmp/Python37 \ && wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tar.xz \ && tar xvf Python-3.7.0.tar.xz \ && cd /tmp/Python37/Python-3.7.0 \ && ./configure \ && make altinstall
RUN ln -s /usr/local/bin/python3.7 /usr/bin/python
RUN wget https://bootstrap.pypa.io/get-pip.py && python get-pip.py
RUN pip install — upgrade pip
RUN pip install requests
RUN apt-get install curl -y
RUN pip install jupyter — upgrade
RUN pip install jupyterlab — upgrade
RUN apt-get install pandoc -y
RUN apt-get install texlive-xetex -y
RUN unlink /usr/bin/python
RUN ln -s /usr/local/bin/python3.7 /usr/bin/python
RUN apt-get install bash -y
RUN pip install bash_kernel
RUN python -m bash_kernel.install
RUN pip install numpy
RUN pip install scipy
RUN apt-get install liblzma-dev
RUN pip install pandas==0.24.2

2. Try to install plotly in your run_jupyter.sh. This runs every time you start the project. But it may give some insights on whether the installation routine is working altogether.

Hope that helps a little

--

--

Frank Zickert | Quantum Machine Learning
Frank Zickert | Quantum Machine Learning

Written by Frank Zickert | Quantum Machine Learning

You're interested in quantum computing and machine learning. But you don't know how to get started? Let me help

No responses yet