Content
Provide a convenient way to install developer tools in VSCode workspaces from conda-forge with micromamba. Get NodeJS, Go, Rust, Python or JupyterLab installed by running a single command.
Inspired by Robocorp RPA developer tools:
- RCC - a command-line tool to run software robots and integrate with the Robocorp Cloud
- Robocorp Lab - a JupyterLab based IDE to build software robots
- Robocorp Code - a VSCode extension to build software robots
This command creates a file - environment.yml describing configuration. The environment.yml is a mamba environment file The extension comes with a number of templates but you could change it to your needs and re-run init command.
- Open command palette (Ctrl+Shift+P)
- Type - micromamba create environment
- Choose a template from a list
- See the micromamba execution progress in terminal
- The environment is activated automatically
- Open command palette (Ctrl+Shift+P)
- Type - micromamba deactivate environment
- See the micromamba execution progress in terminal
- Open command palette (Ctrl+Shift+P)
- Type - micromamba activate environment
- Choose an environment from a list of created environments
- See the micromamba execution progress in terminal
- Open command palette (Ctrl+Shift+P)
- Type - micromamba remove environment
- Choose an environment from a list of created environments
- See the micromamba execution progress in terminal
Clear all command removes micromamba, packages, and reset environment to the initial state.
- Open command palette (Ctrl+Shift+P)
- Type - micromamba clear all
- See the micromamba execution progress in terminal
DotEnv file is a convenient way to provide environment variables to other extensions or user scripts. Each time user creates or activates an environment there is a ~/.micromamba/.env.{prefix-name} file created.
With multi-root workspaces all operations will work the same way as if you open the first workspace folder in VSCode. The idea is that the first workspace folder is a target folder.
Let's say you have a project.code-workspace
with content:
{
"folders": [
{
"path": "folderA"
},
{
"path": "folderB"
}
]
}
Assuming folders are already created, when you open the workspace in VSCode and command to create a micromamba environment, you'll see the following directory structure:
.
├── folderA
│ ├── .micromamba
│ └── environment.yml
├── folderB
Simply open Micromamba - Visual Studio Marketplace and click "Install". Alternatively open Visual Studio Code, go to the extension view and search for "Micromamba".
For detailed releases and migration help, please see releases.
Michael Borisov (@corker).
Thanks for considering! Check here for useful tips and guidelines.
We use a shared copyright model that enables all contributors to maintain the copyright on their contributions.
This software is licensed under the BSD-3-Clause license. See the LICENSE file for details.