|
@@ -23,7 +23,8 @@ RUN apt-get update && apt-get install -y \
|
|
|
python \
|
|
python \
|
|
|
python-dev \
|
|
python-dev \
|
|
|
python-pip \
|
|
python-pip \
|
|
|
- libncurses5-dev
|
|
|
|
|
|
|
+ libncurses5-dev \
|
|
|
|
|
+ python-pillow
|
|
|
|
|
|
|
|
|
|
|
|
|
RUN sudo echo "Europe/Berlin" > /etc/timezone
|
|
RUN sudo echo "Europe/Berlin" > /etc/timezone
|
|
@@ -31,7 +32,8 @@ RUN sudo dpkg-reconfigure -f noninteractive tzdata
|
|
|
|
|
|
|
|
# Update pip and install jupyter
|
|
# Update pip and install jupyter
|
|
|
RUN pip install --upgrade pip
|
|
RUN pip install --upgrade pip
|
|
|
-RUN pip install readline notebook==5.1.0
|
|
|
|
|
|
|
+RUN pip install readline notebook==5.2.0 ipywidgets path.py requests cython
|
|
|
|
|
+RUN jupyter nbextension enable --py --sys-prefix widgetsnbextension
|
|
|
|
|
|
|
|
# Configure jupyter
|
|
# Configure jupyter
|
|
|
# we run this manually after mounting /root/.jupyter
|
|
# we run this manually after mounting /root/.jupyter
|
|
@@ -82,7 +84,7 @@ RUN pyversions -d
|
|
|
|
|
|
|
|
RUN git clone https://github.com/hzeller/rpi-rgb-led-matrix.git /matrix
|
|
RUN git clone https://github.com/hzeller/rpi-rgb-led-matrix.git /matrix
|
|
|
WORKDIR /matrix
|
|
WORKDIR /matrix
|
|
|
-RUN sed -i "s/=regular/=adafruit-hat/g" lib/Makefile
|
|
|
|
|
|
|
+RUN sed -i "s/=regular/=adafruit-hat-pwm/g" lib/Makefile
|
|
|
|
|
|
|
|
# RUN apt-get install -y
|
|
# RUN apt-get install -y
|
|
|
# for C++-demos
|
|
# for C++-demos
|
|
@@ -91,7 +93,4 @@ RUN make -C examples-api-use
|
|
|
# for python interface
|
|
# for python interface
|
|
|
RUN cd bindings/python && make build-python install-python
|
|
RUN cd bindings/python && make build-python install-python
|
|
|
|
|
|
|
|
-RUN apt-get -y install python-pillow
|
|
|
|
|
|
|
|
|
|
-RUN pip install ipywidgets path.py requests
|
|
|
|
|
-RUN jupyter nbextension enable --py --sys-prefix widgetsnbextension
|
|
|