Fix jupyter extensions

main
Aurélien Geron 2016-09-27 12:06:59 +02:00
parent aa1f84c49f
commit 869025b6f9
3 changed files with 9 additions and 5 deletions

View File

@ -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

View File

@ -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).

View File

@ -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
######
#####