Revision b99805ae7cbc45d0588ef19dfe26028630e149ec authored by Lukas Berner on 03 April 2024, 09:08:49 UTC, committed by GitHub on 03 April 2024, 09:08:49 UTC
* add attribute getters to python * remove unused graph object from attribute wrapper classes * add attribute conversion to nx2nk * add optional custom type mapping * fix none case error for type map * add None to parameter type hints * fix edgeById for directed graphs * fix tests, add test for custom typemap * fix CI * change print to warn * update tests to check for warnings
1 parent 28f8ff3
Dockerfile
# This version pinning of the image is temp. due to errors when using latest (kernel-version error triggered when calling conda)
FROM jupyter/base-notebook:lab-3.0.11
LABEL maintainer="Fabian Brandt-Tumescheit <brandtfa@hu-berlin.de>"
# Install requirements
USER root
RUN mkdir /var/lib/apt/lists/partial && \
apt-get update && \
apt-get install -y --no-install-recommends cmake git build-essential && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# UID 1000 (jovyan) is the default user for jupyter-images. The default group for correct permission-level is GID 100 (users)
# Also see: https://jupyter.readthedocs.io/en/latest/community/content-community.html#what-is-a-jovyan
USER 1000
RUN pip install --upgrade pip
RUN pip install setuptools cython powerlaw scikit-learn seaborn pandas tabulate matplotlib networkx ipycytoscape
# Create working environment
# This has to be done as root in order to avoid access denied errors.
USER root
RUN mkdir -p ${HOME}/networkit
COPY . ${HOME}/networkit/
RUN ln -s ${HOME}/networkit/input ${HOME} && ln -s ${HOME}/networkit/notebooks ${HOME}
RUN rm -rf ${HOME}/work
RUN chown -R jovyan:users ${HOME}/*
# Build and install networkit from current branch
USER 1000
RUN cd ${HOME}/networkit && python3 setup.py build_ext && pip install -e .
# Configure Jupyter to enable ipycytoscape
RUN conda install -y nodejs
RUN jupyter labextension install @jupyter-widgets/jupyterlab-manager --no-build && jupyter labextension install jupyter-cytoscape
RUN jupyter lab build
Computing file changes ...