diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..a710cf1c6 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM jupyter/scipy-notebook:6399d2faf16f + +# Launchbot labels +LABEL name.launchbot.io="test" +LABEL workdir.launchbot.io="/usr/workdir" +LABEL 8888.port.launchbot.io="Jupyter Notebook" + +# Set the working directory +WORKDIR /usr/workdir + +# Expose the notebook port +EXPOSE 8888 + +# Start the notebook server +CMD jupyter notebook --no-browser --port 8888 --ip=* \ No newline at end of file diff --git a/notebooks/01.07-Timing-and-Profiling.ipynb b/notebooks/01.07-Timing-and-Profiling.ipynb index 2a65b75a6..cc5931207 100644 --- a/notebooks/01.07-Timing-and-Profiling.ipynb +++ b/notebooks/01.07-Timing-and-Profiling.ipynb @@ -54,7 +54,7 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": 2, "metadata": { "collapsed": false }, @@ -63,12 +63,13 @@ "name": "stdout", "output_type": "stream", "text": [ - "100000 loops, best of 3: 1.54 µs per loop\n" + "The slowest run took 10.08 times longer than the fastest. This could mean that an intermediate result is being cached.\n", + "1000000 loops, best of 3: 1.15 µs per loop\n" ] } ], "source": [ - "%timeit sum(range(100))" + "%timeit sum(range(50))" ] }, { @@ -81,7 +82,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": 3, "metadata": { "collapsed": false }, @@ -90,7 +91,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "1 loops, best of 3: 407 ms per loop\n" + "1 loop, best of 3: 484 ms per loop\n" ] } ], @@ -558,7 +559,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.5.1" + "version": "3.5.2" } }, "nbformat": 4,