Skip to content

Commit

Permalink
install also for python3
Browse files Browse the repository at this point in the history
  • Loading branch information
lgpage committed Jan 15, 2017
1 parent 1d94ce0 commit 98efdb9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
18 changes: 13 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,21 @@ FROM andrewosh/binder-base

MAINTAINER Logan G. Page <[email protected]>

# Update form requirements
RUN pip3 install -r requirements.txt
### Python2 ###
# Install from requirements
RUN pip install -r requirements.txt

# Install and enable extensions
RUN pip3 install nbtutor
RUN jupyter nbextension install --sys-prefix --py nbtutor
RUN jupyter nbextension enable --sys-prefix --py nbtutor
RUN jupyter-nbextension install --sys-prefix --py nbtutor
RUN jupyter-nbextension enable --sys-prefix --py nbtutor

### Python3 ###
# Install from requirements
RUN /home/main/anaconda2/envs/python3/bin/pip install -r requirements.txt

# Install and enable extensions
RUN /home/main/anaconda2/envs/python3/bin/jupyter-nbextension install --sys-prefix --py nbtutor
RUN /home/main/anaconda2/envs/python3/bin/jupyter-nbextension enable --sys-prefix --py nbtutor

# Install notebook config
ADD jupyter_notebook_config.py /home/main/.jupyter/jupyter_notebook_config.py
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ jupyter
jupyter_core
jupyter_client
notebook>=4.2
nbtutor
six

0 comments on commit 98efdb9

Please sign in to comment.