mirror of
https://github.com/ArthurDanjou/handson-ml3.git
synced 2026-01-27 18:20:26 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user