From 06c1f22de2f2bcd5cee6cf8ac3173414cfe6ec4d Mon Sep 17 00:00:00 2001 From: auphelia <jakobapk@web.de> Date: Tue, 3 Dec 2019 12:20:21 +0000 Subject: [PATCH] [Docker] Added jupyter notebook to docker container --- Dockerfile | 1 + notebooks/Untitled.ipynb | 59 ++++++++++++++++++++++++++++++++++++++++ run-docker.sh | 1 + 3 files changed, 61 insertions(+) create mode 100644 notebooks/Untitled.ipynb diff --git a/Dockerfile b/Dockerfile index ef604f0cf..16abce040 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,6 +8,7 @@ COPY requirements.txt . RUN pip install -r requirements.txt RUN rm requirements.txt RUN apt update; apt install nano +RUN pip install jupyter # Note that we expect the cloned finn directory on the host to be # mounted on /workspace/finn -- see run-docker.sh for an example diff --git a/notebooks/Untitled.ipynb b/notebooks/Untitled.ipynb new file mode 100644 index 000000000..4820662dd --- /dev/null +++ b/notebooks/Untitled.ipynb @@ -0,0 +1,59 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "metadata": {}, + "outputs": [], + "source": [ + "from finn.core.datatype import DataType" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "<enum 'DataType'>" + ] + }, + "execution_count": 2, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "DataType" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.6.8" + } + }, + "nbformat": 4, + "nbformat_minor": 2 +} diff --git a/run-docker.sh b/run-docker.sh index 7a0730a27..a5241ea0c 100755 --- a/run-docker.sh +++ b/run-docker.sh @@ -57,4 +57,5 @@ docker run --rm --name finn_dev -it \ -v $SCRIPTPATH/cnpy:/workspace/cnpy \ -v $SCRIPTPATH/finn-hlslib:/workspace/finn-hlslib \ -v $VIVADO_PATH/include:/workspace/vivado-hlslib \ +-p 8888:8888 \ $DOCKER_TAG bash -- GitLab