Skip to content
/ condalab Public
forked from wingillis/condalab

MATLAB utility to switch between Anaconda environments

Notifications You must be signed in to change notification settings

talmo/condalab

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

condalab

Handy MATLAB utility to switch between conda environments from within MATLAB

Installation

Grab this repo

git clone https://github.com/wingillis/condalab.git

Chuck it somewhere on your matlab path:

% add the full path for condalab: for me it's:
addpath(genpath('/Users/wgillis/dev/condalab'));

Usage

To view all your conda environments (i.e., the equivalent of conda env list)

conda.getenv

% You'll see something like this:
asimov     /Users/sg-s/anaconda3/envs/asimov
mctsne     /Users/sg-s/anaconda3/envs/mctsne
*tensorflow     /Users/sg-s/anaconda3/envs/tensorflow
root     /Users/sg-s/anaconda3

the * indicates the currently active environment

To switch between environments (i.e., source activate env)

conda.setenv('env_name')

It's that simple. Enjoy.

About

MATLAB utility to switch between Anaconda environments

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • MATLAB 100.0%