From 869025b6f996d26b32024a4bdc97e82254138cbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Geron?= Date: Tue, 27 Sep 2016 12:06:59 +0200 Subject: [PATCH] Fix jupyter extensions --- Dockerfile | 2 +- README.md | 10 +++++++--- requirements.txt | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 21dd7a8..60776ea 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ USER main # Python 2 RUN conda install -c jjhelmus tensorflow=0.10.0 RUN conda install -c conda-forge jupyter_contrib_nbextensions +RUN jupyter contrib nbextension install --user # Python 3 RUN conda install -n python3 -c jjhelmus tensorflow=0.10.0 -RUN conda install -n python3 -c conda-forge jupyter_contrib_nbextensions diff --git a/README.md b/README.md index 84dc279..8370310 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ Simply open the [Jupyter](http://jupyter.org/) notebooks you are interested in: No installation is required, just click the *launch binder* button above, and you're good to go! But if you insist, here's how to install these notebooks on your system. -Obviously, you will need [git](https://git-scm.com/) and [python](https://www.python.org/downloads/) (2 or 3). +Obviously, you will need [git](https://git-scm.com/) and [python](https://www.python.org/downloads/) (python 3 is recommended, but python 2 should work as well). First, clone this repository: @@ -32,14 +32,18 @@ If you want an isolated environment, you can use [virtualenv](https://virtualenv $ virtualenv env $ source ./env/bin/activate -There are different packages for TensorFlow, depending on your platform. Please edit `requirements.txt` using your favorite editor, and make sure only the right one for your platform is uncommented. Default is Python 2, Ubuntu/Linux 64-bits, CPU-only. +There are different packages for TensorFlow, depending on your platform. Please edit `requirements.txt` using your favorite editor, and make sure only the right one for your platform is uncommented. Default is Python 3.5, Ubuntu/Linux 64-bits, CPU-only. Then install the required python packages using pip: $ pip install -r requirements.txt +If you want to install the Jupyter extensions, run the following command (this is optional but recommended as it allows you to view a table of contents in each notebook): + + $ jupyter contrib nbextension install --user + Finally, launch Jupyter: $ jupyter notebook -This should start the Jupyter server locally, and open your browser. Click on `index.ipynb` to get started. +This should start the Jupyter server locally, and open your browser. Click on `index.ipynb` to get started (note: you can visit `/nbextensions` to turn extensions on or off). diff --git a/requirements.txt b/requirements.txt index 4505354..ef5d623 100644 --- a/requirements.txt +++ b/requirements.txt @@ -13,7 +13,7 @@ wheel # Optional: these are useful Jupyter extensions, in particular to display # the table of contents. -https://github.com/ipython-contrib/IPython-notebook-extensions/archive/master.zip +https://github.com/ipython-contrib/jupyter_contrib_nbextensions/tarball/master ###### #####