Giter Site home page Giter Site logo

sg-s / condalab Goto Github PK

View Code? Open in Web Editor NEW
19.0 5.0 9.0 25 KB

MATLAB utility to switch between Anaconda environments

License: GNU General Public License v3.0

MATLAB 97.82% Python 2.18%
matlab anaconda python conda conda-environment virtualenv anaconda3

condalab's Introduction

condalab

Handy MATLAB utility to switch between conda environments from within MATLAB

Installation

  1. Download this repo and add to 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

condalab works exactly like conda.

So if you want to list the environments you have, you can use

% yes, type this in your matlab prompt
conda env list 

base     /Users/srinivas/anaconda3
*umap     /Users/srinivas/anaconda3/envs/umap

and the * indicates the currently active environment.

To switch environments, use

% yes, type this in your matlab prompt
conda activate umap

To check that everything worked, you can run

conda.test

The python executable I am using is located at:
/Users/srinivas/anaconda3/envs/umap/bin/python

and you see that it is using the right environment.

It's that simple. Enjoy.

License

GPL v3

condalab's People

Contributors

mgcooper avatar rmtfleming avatar sg-s avatar thangleiter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

condalab's Issues

problem with active path

conda.getenv

Undefined function or variable 'active_path'.

Error in conda.getenv (line 66)
if active_path == i

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.