Develop Miniconda applications in Python 3. Installs dependencies from your environment.yml file and the Python extension.
| Options Id | Description | Type | Default Value |
|---|---|---|---|
| nodeVersion | Node.js version: | string | lts/* |
This dev container and its associated image includes the conda package manager. Additional packages installed using Conda will be downloaded from Anaconda or another repository if you configure one. To reconfigure Conda in this container to access an alternative repository, please see information on configuring Conda channels here.
Access to the Anaconda repository is covered by the Anaconda Terms of Service, which may require some organizations to obtain a commercial license from Anaconda. However, when this dev container or its associated image is used with GitHub Codespaces or GitHub Actions, all users are permitted to use the Anaconda Repository through the service, including organizations normally required by Anaconda to obtain a paid license for commercial activities. Note that third-party packages may be licensed by their publishers in ways that impact your intellectual property, and are used at your own risk.
This container installs all Python development utilities using pipx to avoid impacting the global Python environment. You can use this same utility add additional utilities in an isolated environment. For example:
pipx install prospectorNote that if you change the version of Python from the default, you'll need to run a few commands to update the utilities and pipx. More on that next.
As covered in the user FAQ for Anaconda, you can install different versions of Python than the one in this image by running the following from a terminal:
conda install python=3.6
pip install --no-cache-dir pipx
pipx uninstall pipx
pipx reinstall-allOr in a Dockerfile:
RUN conda install -y python=3.6 \
&& pip install --no-cache-dir pipx \
&& pipx uninstall pipx \
&& pipx reinstall-allSee the pipx documentation for additional information.
For convenience, this definition will automatically install dependencies from the environment.yml file in the parent folder when the container is built. You can change this behavior by altering this line in the .devcontainer/Dockerfile:
RUN if [ -f "/tmp/conda-tmp/environment.yml" ]; then /opt/conda/bin/conda env update -n base -f /tmp/conda-tmp/environment.yml; fi \
&& rm -rf /tmp/conda-tmpNote: This file was auto-generated from the devcontainer-template.json. Add additional notes to a NOTES.md.