mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-17 06:52:56 +00:00
Remove Python 2
Only Python 3 from now on
This commit is contained in:
@@ -4,10 +4,5 @@ FROM jupyter/scipy-notebook
|
||||
|
||||
MAINTAINER Jupyter Project <jupyter@googlegroups.com>
|
||||
|
||||
USER $NB_USER
|
||||
|
||||
# Install Python 3 Tensorflow
|
||||
RUN conda install --quiet --yes 'tensorflow=1.0*'
|
||||
|
||||
# Install Python 2 Tensorflow
|
||||
RUN conda install --quiet --yes -n python2 'tensorflow=1.0*'
|
||||
|
@@ -96,32 +96,20 @@ For additional information about using SSL, see the following:
|
||||
* The [jupyter_notebook_config.py](jupyter_notebook_config.py) file for how this Docker image generates a self-signed certificate.
|
||||
* The [Jupyter Notebook documentation](https://jupyter-notebook.readthedocs.io/en/latest/public_server.html#using-ssl-for-encrypted-communication) for best practices about running a public notebook server in general, most of which are encoded in this image.
|
||||
|
||||
|
||||
## Conda Environments
|
||||
|
||||
The default Python 3.x [Conda environment](http://conda.pydata.org/docs/using/envs.html) resides in `/opt/conda`. A second Python 2.x Conda environment exists in `/opt/conda/envs/python2`. You can [switch to the python2 environment](http://conda.pydata.org/docs/using/envs.html#change-environments-activate-deactivate) in a shell by entering the following:
|
||||
The default Python 3.x [Conda environment](http://conda.pydata.org/docs/using/envs.html) resides in `/opt/conda`.
|
||||
|
||||
The commands `jupyter`, `ipython`, `python`, `pip`, 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:
|
||||
|
||||
```
|
||||
source activate python2
|
||||
```
|
||||
|
||||
You can return to the default environment with this command:
|
||||
|
||||
```
|
||||
source deactivate
|
||||
```
|
||||
|
||||
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
|
||||
pip install some-package
|
||||
conda install some-package
|
||||
```
|
||||
|
||||
|
||||
## Alternative Commands
|
||||
|
||||
### start-singleuser.sh
|
||||
|
Reference in New Issue
Block a user