Skip to content
 
 

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

condalab

Handy MATLAB utility to switch between conda environments from within MATLAB

Installation

  1. Grab this repo. Chuck it somewhere on your path.
  2. Determine where your base conda installation by opening a terminal and typing which conda. Make a note of that path.
  3. Type conda.init in your MATLAB terminal. It should prompt you for the path you got in step 2.

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

and 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

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages