Skip to content

Instantly share code, notes, and snippets.

View James-Leslie's full-sized avatar

James Leslie James-Leslie

View GitHub Profile
@James-Leslie
James-Leslie / conda-environment-example.md
Last active August 13, 2024 00:54
Example of a conda `environment.yml` file containing a few popular packages

Example conda environment file

Conda documentation

1. File structure

name: <environment-name>
channels:
 - conda-forge
@James-Leslie
James-Leslie / jupyter-envs.md
Created October 5, 2020 07:12
How to add conda environment to jupyter lab

How to add conda environments to JupyterLab

Credit for this goes to the Stack Overflow user Statistic Dean for his post on this question

1. Install nb_conda_kernels into your base environment

(base)$ conda install -c conda-forge nb_conda_kernels

2. Activate desired environment and install ipykernel

@James-Leslie
James-Leslie / conda-envs.md
Last active December 14, 2022 09:48
Conda environments

Managing conda virtual environments

Conda documentation


1. Getting started

1.1. Create env

Create env with python 3.7 and pip

conda create --name whatwhale python=3.7 pip