Conda environment and package management extension from within Jupyter
The Mamba Navigator, a Web UI for managing conda environments
Starting from 3.4, this extension will use mamba instead ofcondaif it finds it.
To install in the classical notebook:
conda install -c conda-forge mamba_gator
To install in the JupyterLab:
conda install -c conda-forge jupyterlab mamba_gator jupyter labextension install @mamba-org/gator-lab
This extension adds a new entry Conda Packages Manager in the Settings menu.
The first time, it can take quite some time to build the available packages list. But once it is obtained, it will be cached and updated to the background to have a smoother user experience.
This project contains a standalone navigator application sharing much of the code of the JupyterLab extension.
This extension adds a Conda tab to the Jupyter file browser and a Conda Packages item
to the Kernel menu.
Clicking on either of those elements will open the standalone navigator in a new tab.
There are three ways to create an environment:
Create a new environment Use the New Environment button at the top of the page, and select
Python 3, or
Rto create a base environment with the corresponding packages. Note that if you want to run a Jupyter python kernel in the new environment, you must also install the
ipykernelpackage in the environment.
Clone an existing environment Click the clone button next to an environment in the list, and enter the desired name of the new environment.
Import an exported environment from a YAML file
conda create -c conda-forge -y -n gator python jupyterlab=2 conda install -c conda-forge -y -n gator --file requirements_dev.txt conda activate gator pip install -e . jupyter nbextension install mamba_gator --py --sys-prefix --symlink jupyter nbextension enable mamba_gator --py --sys-prefix jupyter serverextension enable mamba_gator --py --sys-prefix
yarn install yarn run build:dev jupyter labextension link packages/common/ packages/labextension/
This work started as a fork by @fcollonval of the Anaconda nb_conda package. The decision to fork it came due to apparently dead status of the previous package and a need to integrate it within JupyterLab.
Then with the mamba initiative pushed by QuantStack it made sense to move the project in the
mambaif available. Otherwise use
To improve UI reactivity in Jupyterlab:
whitelist=0 or 1 query arguments. If 1, the environment list is filtered to respect
KernelSpecManager.whitelist. Default is 0, but it could be modified in user settings.
IEnvironmentManager.getPackageManager()returns always the same
Conda.IPackageManagerotherwise signaling package operations would have been meaningless.
react-virtualizedfor the packages list
$skipto skip N first packages
$nextin the response is returned. This is the request url to use to get the next batch of packages.
conda searchcrashes for conda 4.6