Rolled-back graphviz

I gave up on enabling DT visualization for the moment, as graphviz integration
stopped working... I can't run dot in the image any more, receiving:

Could not load "/opt/conda/lib/graphviz/libgvplugin_pango.so.6" - file not found

As far as I was able to diagnose thats (with ldd), that's because libiconv.so.2
is not available. But according to what I see in mailgroups that should not be
needed (on debian at least)...
This commit is contained in:
ziembla
2017-11-28 09:57:47 +01:00
parent 4fa5beb93a
commit fc355ca6b9
2 changed files with 41 additions and 48 deletions

View File

@@ -41,26 +41,18 @@ RUN mkdir -p ${HOME}/.jupyter && \
>> ${HOME}/.jupyter/jupyter_notebook_config.py
# INFO: Below - work in progress, nbdime not totally integrated, still:
# 1. enables diffing notebooks via nbdiff after connecting to container by "make exec" (docker exec)
# INFO: Below - work in progress, nbdime not totally integrated, still it enables diffing
# notebooks via nbdiff after connecting to container by "make exec" (docker exec)
# Use:
# nbd NOTEBOOK_NAME.ipynb
# to get nbdiff between checkpointed version and current version of the given notebook
# 2. allows decision tree visualization in notebook
# Use:
# from sklearn import tree
# from graphviz import Source
# Source(tree.export_graphviz(tree_clf, out_file=None, feature_names=iris.feature_names[2:]))
USER root
WORKDIR /
RUN conda install -y -c conda-forge nbdime
RUN conda install -y -c conda-forge python-graphviz
USER ${username}
WORKDIR ${HOME}/handson-ml
COPY docker/bashrc /tmp/bashrc
RUN cat /tmp/bashrc >> ${HOME}/.bashrc
RUN sudo rm -rf /tmp/bashrc