Skip to content

Commit

Permalink
Fix jupyter extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
ageron committed Sep 27, 2016
1 parent 1d71272 commit 5516e22
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand All @@ -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).
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

######
#####
Expand Down

0 comments on commit 5516e22

Please sign in to comment.