mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-16 14:32:57 +00:00
Remove Python 2
Only Python 3 from now on
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
## What it Gives You
|
## What it Gives You
|
||||||
|
|
||||||
* Jupyter Notebook 4.3.x
|
* Jupyter Notebook 4.3.x
|
||||||
* Conda Python 3.x and Python 2.7.x environments
|
* Conda Python 3.x environment
|
||||||
* Conda R 3.3.x environment
|
* Conda R 3.3.x environment
|
||||||
* Scala 2.11.x
|
* Scala 2.11.x
|
||||||
* pyspark, pandas, matplotlib, scipy, seaborn, scikit-learn pre-installed for Python
|
* pyspark, pandas, matplotlib, scipy, seaborn, scikit-learn pre-installed for Python
|
||||||
@@ -270,33 +270,19 @@ For additional information about using SSL, see the following:
|
|||||||
* 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.
|
* 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
|
## 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
|
# install a package into the default (python 3.x) environment
|
||||||
pip3 install some-package
|
pip install some-package
|
||||||
conda install -n python3 some-package
|
conda install some-package
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## Alternative Commands
|
## Alternative Commands
|
||||||
|
|
||||||
### start-singleuser.sh
|
### start-singleuser.sh
|
||||||
|
@@ -88,9 +88,19 @@ 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_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.
|
* 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 Environment
|
|
||||||
|
|
||||||
The default Python 3.x [Conda environment](http://conda.pydata.org/docs/using/envs.html) resides in `/opt/conda`. The commands `ipython`, `python`, `pip`, `easy_install`, and `conda` (among others) are available in this environment.
|
## Conda Environments
|
||||||
|
|
||||||
|
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:
|
||||||
|
|
||||||
|
```
|
||||||
|
# install a package into the default (python 3.x) environment
|
||||||
|
pip install some-package
|
||||||
|
conda install some-package
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
## Alternative Commands
|
## Alternative Commands
|
||||||
|
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
## What it Gives You
|
## What it Gives You
|
||||||
|
|
||||||
* Jupyter Notebook 5.0.x
|
* Jupyter Notebook 5.0.x
|
||||||
* Conda Python 3.x and Python 2.7.x environments
|
* Conda Python 3.x environment
|
||||||
* pandas, matplotlib, scipy, seaborn, scikit-learn, scikit-image, sympy, cython, patsy, statsmodel, cloudpickle, dill, numba, bokeh pre-installed
|
* pandas, matplotlib, scipy, seaborn, scikit-learn, scikit-image, sympy, cython, patsy, statsmodel, cloudpickle, dill, numba, bokeh pre-installed
|
||||||
* Conda R v3.3.x and channel
|
* Conda R v3.3.x and channel
|
||||||
* plyr, devtools, shiny, rmarkdown, forecast, rsqlite, reshape2, nycflights13, caret, rcurl, and randomforest pre-installed
|
* plyr, devtools, shiny, rmarkdown, forecast, rsqlite, reshape2, nycflights13, caret, rcurl, and randomforest pre-installed
|
||||||
@@ -90,32 +90,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_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.
|
* 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
|
## 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
|
# install a package into the default (python 3.x) environment
|
||||||
pip3 install some-package
|
pip install some-package
|
||||||
conda install -n python3 some-package
|
conda install some-package
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## Alternative Commands
|
## Alternative Commands
|
||||||
|
|
||||||
### start-singleuser.sh
|
### start-singleuser.sh
|
||||||
|
@@ -89,9 +89,19 @@ 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_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.
|
* 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 Environment
|
|
||||||
|
|
||||||
The default Python 3.x [Conda environment](http://conda.pydata.org/docs/using/envs.html) resides in `/opt/conda`. The commands `ipython`, `python`, `pip`, `easy_install`, and `conda` (among others) are available in this environment.
|
## Conda Environments
|
||||||
|
|
||||||
|
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:
|
||||||
|
|
||||||
|
```
|
||||||
|
# install a package into the default (python 3.x) environment
|
||||||
|
pip install some-package
|
||||||
|
conda install some-package
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
## Alternative Commands
|
## Alternative Commands
|
||||||
|
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
## What it Gives You
|
## What it Gives You
|
||||||
|
|
||||||
* Jupyter Notebook 5.0.x
|
* Jupyter Notebook 5.0.x
|
||||||
* Conda Python 3.x and Python 2.7.x environments
|
* Conda Python 3.x environment
|
||||||
* pyspark, pandas, matplotlib, scipy, seaborn, scikit-learn pre-installed
|
* pyspark, pandas, matplotlib, scipy, seaborn, scikit-learn pre-installed
|
||||||
* Spark 2.2.0 with Hadoop 2.7 for use in local mode or to connect to a cluster of Spark workers
|
* Spark 2.2.0 with Hadoop 2.7 for use in local mode or to connect to a cluster of Spark workers
|
||||||
* Mesos client 1.2 binary that can communicate with a Mesos master
|
* Mesos client 1.2 binary that can communicate with a Mesos master
|
||||||
@@ -162,34 +162,19 @@ For additional information about using SSL, see the following:
|
|||||||
* 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.
|
* 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
|
## 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
|
# install a package into the default (python 3.x) environment
|
||||||
pip3 install some-package
|
pip install some-package
|
||||||
conda install -n python3 some-package
|
conda install some-package
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## Alternative Commands
|
## Alternative Commands
|
||||||
|
|
||||||
### start-singleuser.sh
|
### start-singleuser.sh
|
||||||
|
@@ -47,54 +47,8 @@ RUN conda install --quiet --yes \
|
|||||||
# Activate ipywidgets extension in the environment that runs the notebook server
|
# Activate ipywidgets extension in the environment that runs the notebook server
|
||||||
RUN jupyter nbextension enable --py widgetsnbextension --sys-prefix
|
RUN jupyter nbextension enable --py widgetsnbextension --sys-prefix
|
||||||
|
|
||||||
# Install Python 2 packages
|
|
||||||
# Remove pyqt and qt pulled in for matplotlib since we're only ever going to
|
|
||||||
# use notebook-friendly backends in these images
|
|
||||||
RUN conda create --quiet --yes -p $CONDA_DIR/envs/python2 python=2.7 \
|
|
||||||
'nomkl' \
|
|
||||||
'ipython=5.3*' \
|
|
||||||
'ipywidgets=6.0*' \
|
|
||||||
'pandas=0.19*' \
|
|
||||||
'numexpr=2.6*' \
|
|
||||||
'matplotlib=2.0*' \
|
|
||||||
'scipy=0.19*' \
|
|
||||||
'seaborn=0.7*' \
|
|
||||||
'scikit-learn=0.18*' \
|
|
||||||
'scikit-image=0.12*' \
|
|
||||||
'sympy=1.0*' \
|
|
||||||
'cython=0.25*' \
|
|
||||||
'patsy=0.4*' \
|
|
||||||
'statsmodels=0.8*' \
|
|
||||||
'cloudpickle=0.2*' \
|
|
||||||
'dill=0.2*' \
|
|
||||||
'numba=0.31*' \
|
|
||||||
'bokeh=0.12*' \
|
|
||||||
'hdf5=1.8.17' \
|
|
||||||
'h5py=2.6*' \
|
|
||||||
'sqlalchemy=1.1*' \
|
|
||||||
'pyzmq' \
|
|
||||||
'vincent=0.4.*' \
|
|
||||||
'beautifulsoup4=4.5.*' \
|
|
||||||
'xlrd' && \
|
|
||||||
conda remove -n python2 --quiet --yes --force qt pyqt && \
|
|
||||||
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
|
|
||||||
|
|
||||||
# Import matplotlib the first time to build the font cache.
|
# Import matplotlib the first time to build the font cache.
|
||||||
ENV XDG_CACHE_HOME /home/$NB_USER/.cache/
|
ENV XDG_CACHE_HOME /home/$NB_USER/.cache/
|
||||||
RUN MPLBACKEND=Agg $CONDA_DIR/envs/python2/bin/python -c "import matplotlib.pyplot"
|
RUN MPLBACKEND=Agg python -c "import matplotlib.pyplot"
|
||||||
|
|
||||||
USER root
|
|
||||||
|
|
||||||
# Install Python 2 kernel spec globally to avoid permission problems when NB_UID
|
|
||||||
# switching at runtime and to allow the notebook server running out of the root
|
|
||||||
# environment to find it. Also, activate the python2 environment upon kernel
|
|
||||||
# launch.
|
|
||||||
RUN pip install kernda --no-cache && \
|
|
||||||
$CONDA_DIR/envs/python2/bin/python -m ipykernel install && \
|
|
||||||
kernda -o -y /usr/local/share/jupyter/kernels/python2/kernel.json && \
|
|
||||||
pip uninstall kernda -y
|
|
||||||
|
|
||||||
USER $NB_USER
|
USER $NB_USER
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
## What it Gives You
|
## What it Gives You
|
||||||
|
|
||||||
* Jupyter Notebook 5.0.x
|
* Jupyter Notebook 5.0.x
|
||||||
* Conda Python 3.x and Python 2.7.x environments
|
* Conda Python 3.x environment
|
||||||
* pandas, matplotlib, scipy, seaborn, scikit-learn, scikit-image, sympy, cython, patsy, statsmodel, cloudpickle, dill, numba, bokeh, vincent, beautifulsoup, xlrd pre-installed
|
* pandas, matplotlib, scipy, seaborn, scikit-learn, scikit-image, sympy, cython, patsy, statsmodel, cloudpickle, dill, numba, bokeh, vincent, beautifulsoup, xlrd pre-installed
|
||||||
* Unprivileged user `jovyan` (uid=1000, configurable, see options) in group `users` (gid=100) with ownership over `/home/jovyan` and `/opt/conda`
|
* Unprivileged user `jovyan` (uid=1000, configurable, see options) in group `users` (gid=100) with ownership over `/home/jovyan` and `/opt/conda`
|
||||||
* [tini](https://github.com/krallin/tini) as the container entrypoint and [start-notebook.sh](../base-notebook/start-notebook.sh) as the default command
|
* [tini](https://github.com/krallin/tini) as the container entrypoint and [start-notebook.sh](../base-notebook/start-notebook.sh) as the default command
|
||||||
@@ -87,32 +87,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_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.
|
* 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
|
## 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
|
# install a package into the default (python 3.x) environment
|
||||||
pip3 install some-package
|
pip install some-package
|
||||||
conda install -n python3 some-package
|
conda install some-package
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## Alternative Commands
|
## Alternative Commands
|
||||||
|
|
||||||
### start-singleuser.sh
|
### start-singleuser.sh
|
||||||
|
@@ -4,10 +4,5 @@ FROM jupyter/scipy-notebook
|
|||||||
|
|
||||||
MAINTAINER Jupyter Project <jupyter@googlegroups.com>
|
MAINTAINER Jupyter Project <jupyter@googlegroups.com>
|
||||||
|
|
||||||
USER $NB_USER
|
|
||||||
|
|
||||||
# Install Python 3 Tensorflow
|
# Install Python 3 Tensorflow
|
||||||
RUN conda install --quiet --yes 'tensorflow=1.0*'
|
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_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.
|
* 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
|
## 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
|
# install a package into the default (python 3.x) environment
|
||||||
pip3 install some-package
|
pip install some-package
|
||||||
conda install -n python3 some-package
|
conda install some-package
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## Alternative Commands
|
## Alternative Commands
|
||||||
|
|
||||||
### start-singleuser.sh
|
### start-singleuser.sh
|
||||||
|
Reference in New Issue
Block a user