Commit 978bd772 authored by Christian Salzmann-Jaeckel's avatar Christian Salzmann-Jaeckel

Merge branch 'tensorflow' into 'master'

Tensorflow

See merge request !12
parents 66ceb91c e338cc53
Pipeline #24631 passed with stage
in 3 minutes and 3 seconds
......@@ -6,7 +6,7 @@ ARG DEBIAN_FRONTEND=noninteractive
RUN apt update \
&& apt upgrade --assume-yes \
&& apt install -y make libgmp-dev libmpfr-dev libmpc-dev ppl-dev gnuplot \
&& apt install -y make libgmp-dev libmpfr-dev libmpc-dev ppl-dev gnuplot ipython\
&& install --directory --owner=www-data --group=www-data --mode=0755 /var/www \
&& rm -rf /var/cache/apt/*bin /var/cache/apt/archives/*deb /var/lib/apt/lists/*
......@@ -27,6 +27,15 @@ RUN chmod -R go-w /jupyter
# Set up defaults for running the service
EXPOSE 9001/tcp
USER www-data
WORKDIR /jupyter/local/
RUN python3 -m venv tensorflow \
&& . tensorflow/bin/activate \
&& pip install --upgrade pip \
&& pip install wheel \
&& pip install --use-feature=2020-resolver tensorflow tensorflow-datasets ipython ipykernel matplotlib \
&& python -m ipykernel install --name "tensorflow" --user
WORKDIR /jupyter
ENTRYPOINT ["/bin/sh","-c"]
......
This diff is collapsed.
......@@ -4,11 +4,9 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# SCIP 7.0.0 + PySCIPOpt 3.0.0 Teaching container\n",
"# Test notebook\n",
"\n",
"This file is to verify that everything is running as expected\n",
"\n",
"*FREE for non-academic and non-commerical use*"
"This file is to verify that everything is running as expected\n"
]
},
{
......@@ -17,26 +15,8 @@
"metadata": {},
"outputs": [],
"source": [
"from pyscipopt import Model\n",
"\n",
"model = Model(\"Example\") # model name is optional\n",
"\n",
"x = model.addVar(\"x\")\n",
"y = model.addVar(\"y\", vtype=\"INTEGER\")\n",
"model.setObjective(x + y)\n",
"model.addCons(2*x - y*y >= 0)\n",
"model.optimize()\n",
"sol = model.getBestSol()\n",
"print(\"x: {}\".format(sol[x]))\n",
"print(\"y: {}\".format(sol[y]))"
"print(\"Hello, CO@World!\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
......@@ -55,7 +35,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.3"
"version": "3.7.7"
}
},
"nbformat": 4,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment