Skip to content

Commit

Permalink
Merge pull request #217 from parente/various-tuneups
Browse files Browse the repository at this point in the history
Various tuneups
  • Loading branch information
minrk committed May 31, 2016
2 parents b07f1d5 + e384a45 commit a249876
Show file tree
Hide file tree
Showing 8 changed files with 51 additions and 7 deletions.
2 changes: 1 addition & 1 deletion all-spark-notebook/Dockerfile
Expand Up @@ -28,5 +28,5 @@ RUN conda config --add channels r && \
'r-rcurl=1.95*' && conda clean -tipsy

# Apache Toree kernel
RUN pip install toree==0.1.0.dev7
RUN pip --no-cache-dir install toree==0.1.0.dev7
RUN jupyter toree install --user
11 changes: 10 additions & 1 deletion all-spark-notebook/README.md
Expand Up @@ -241,8 +241,17 @@ You can return to the default environment with this command:
source deactivate
```

The commands `ipython`, `python`, `pip`, `easy_install`, and `conda` (among others) are available in both environments.
The commands `jupyter`, `ipython`, `python`, `pip`, `easy_install`, and `conda` (among others) are available in both environments. For convenience, you can install packages into either environment regardless of what environment is currently active using commands like the following:

```
# install a package into the python2 environment
pip2 install some-package
conda install -n python2 some-package
# install a package into the default (python 3.x) environment
pip3 install some-package
conda install -n python3 some-package
```

## JupyterHub

Expand Down
5 changes: 3 additions & 2 deletions base-notebook/Dockerfile
Expand Up @@ -35,6 +35,7 @@ ENV PATH $CONDA_DIR/bin:$PATH
ENV SHELL /bin/bash
ENV NB_USER jovyan
ENV NB_UID 1000
ENV HOME /home/$NB_USER
ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
Expand All @@ -49,7 +50,7 @@ USER jovyan
# Setup jovyan home directory
RUN mkdir /home/$NB_USER/work && \
mkdir /home/$NB_USER/.jupyter && \
mkdir /home/$NB_USER/.local && \
mkdir -p -m 700 /home/$NB_USER/.local/share/jupyter && \
echo "cacert=/etc/ssl/certs/ca-certificates.crt" > /home/$NB_USER/.curlrc

# Install conda as jovyan
Expand All @@ -69,7 +70,7 @@ RUN conda install --quiet --yes \
&& conda clean -tipsy

# Install JupyterHub to get the jupyterhub-singleuser startup script
RUN pip install 'jupyterhub==0.5'
RUN pip --no-cache-dir install 'jupyterhub==0.5'

USER root

Expand Down
12 changes: 11 additions & 1 deletion datascience-notebook/README.md
Expand Up @@ -70,7 +70,17 @@ You can return to the default environment with this command:
source deactivate
```

The commands `ipython`, `python`, `pip`, `easy_install`, and `conda` (among others) are available in both environments.
The commands `jupyter`, `ipython`, `python`, `pip`, `easy_install`, and `conda` (among others) are available in both environments. For convenience, you can install packages into either environment regardless of what environment is currently active using commands like the following:

```
# install a package into the python2 environment
pip2 install some-package
conda install -n python2 some-package
# install a package into the default (python 3.x) environment
pip3 install some-package
conda install -n python3 some-package
```


## JupyterHub
Expand Down
3 changes: 3 additions & 0 deletions pyspark-notebook/Dockerfile
Expand Up @@ -69,6 +69,9 @@ RUN conda create --quiet --yes -p $CONDA_DIR/envs/python2 python=2.7 \
'scikit-learn=0.17*' \
pyzmq \
&& conda clean -tipsy
# Add shortcuts to distinguish pip for python2 and python3 envs
RUN ln -s $CONDA_DIR/envs/python2/bin/pip $CONDA_DIR/bin/pip2 && \
ln -s $CONDA_DIR/bin/pip $CONDA_DIR/bin/pip3

# Install Python 2 kernel spec into the Python 3 conda environment which
# runs the notebook server
Expand Down
11 changes: 10 additions & 1 deletion pyspark-notebook/README.md
Expand Up @@ -143,8 +143,17 @@ You can return to the default environment with this command:
source deactivate
```

The commands `ipython`, `python`, `pip`, `easy_install`, and `conda` (among others) are available in both environments.
The commands `jupyter`, `ipython`, `python`, `pip`, `easy_install`, and `conda` (among others) are available in both environments. For convenience, you can install packages into either environment regardless of what environment is currently active using commands like the following:

```
# install a package into the python2 environment
pip2 install some-package
conda install -n python2 some-package
# install a package into the default (python 3.x) environment
pip3 install some-package
conda install -n python3 some-package
```

## JupyterHub

Expand Down
3 changes: 3 additions & 0 deletions scipy-notebook/Dockerfile
Expand Up @@ -59,6 +59,9 @@ RUN conda create --quiet --yes -p $CONDA_DIR/envs/python2 python=2.7 \
'h5py=2.5*' \
'pyzmq' \
&& conda clean -tipsy
# Add shortcuts to distinguish pip for python2 and python3 envs
RUN ln -s $CONDA_DIR/envs/python2/bin/pip $CONDA_DIR/bin/pip2 && \
ln -s $CONDA_DIR/bin/pip $CONDA_DIR/bin/pip3

USER root

Expand Down
11 changes: 10 additions & 1 deletion scipy-notebook/README.md
Expand Up @@ -67,8 +67,17 @@ You can return to the default environment with this command:
source deactivate
```

The commands `ipython`, `python`, `pip`, `easy_install`, and `conda` (among others) are available in both environments.
The commands `jupyter`, `ipython`, `python`, `pip`, `easy_install`, and `conda` (among others) are available in both environments. For convenience, you can install packages into either environment regardless of what environment is currently active using commands like the following:

```
# install a package into the python2 environment
pip2 install some-package
conda install -n python2 some-package
# install a package into the default (python 3.x) environment
pip3 install some-package
conda install -n python3 some-package
```

## JupyterHub

Expand Down

0 comments on commit a249876

Please sign in to comment.