Manage your conda environments from the Jupyter Notebook and JupyterLab
Provides Conda environment and package access extension from within Jupyter Notebook and JupyterLab.
This is a fork 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.
- conda >= 4.5
- notebook >= 4.3
- JupyterLab 1.0 (for the jupyterlab extension only)
To install in the classical notebook:
conda install -c conda-forge jupyter_conda
To install in the JupyterLab:
conda install -c conda-forge jupyterlab jupyter_conda jupyter labextension install jupyterlab_toastify jupyterlab_conda
Classical Jupyter Notebook
Conda tab in the Jupyter file browser
This extensions adds a Conda tab to the Jupyter file browser. Selecting the Conda tab will display:
- A list of the Conda environments that current exist
- The list of Conda packages available in currently configured channels (http://conda.pydata.org/docs/config.html#channel-locations-channels)
- The list of packages installed in the selected environment.
You can click on the name of an environment to select it. That will allow you to:
- see the packages installed in the environment
- install new packages from the available package list
- check for updates on selected (or all) packages
- update selected (or all) packages in the environment.
Conda in the Notebook view
This extension adds a Conda Packages item to the Kernel menu. Selecting this item displays the list of Conda packages in the environment associated with the running kernel, and the list of available packages. You can perform the same actions as in the Conda tab, but only against the current environment.
This extension add a new entry Conda Packages Manager in the Settings menu.
Creating New Environments
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 -y -n jupyter_conda python jupyterlab conda install -y -n jupyter_conda --file requirements.txt -c conda-forge conda install -y -n jupyter_conda --file requirements_dev.txt -c conda-forge source activate jupyter_conda python setup.py develop jupyter nbextension install jupyter_conda --py --sys-prefix --symlink jupyter nbextension enable jupyter_conda --py --sys-prefix jupyter serverextension enable jupyter_conda --py --sys-prefix cd labextension jupyter labextension install .
- Add ability to specify kernel companions; i.e. check that if some packages are installed in a kernel, they must respect a certain version range. Companions can be specified through user settings.
IEnvironmentManager.getPackageManager()returns always the same
Conda.IPackageManagerotherwise signaling package operations would have been meaningless.
- Request environment list access now
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.
- Small UI tweaks
- Rework the server/client API to be more REST and returns 202 status for long operations
- Cache available packages list in temp directory
- Improve greatly the coverage for the server extension
- JupyterLab extension only:
- Allow the user to change the proposed environment when creating one from scratch
- Add signals to handle environnements and packages changes (see
- Improve the UI reactivity by using
react-virtualizedfor the packages list
- Improve the look and feel
- Available packages truncation has been removed.
- Catch SSLError when requesting
- Export in YAML format the environment (import in the older format is still supported).
- Improve responsiveness by loading first installed packages. Then request available one.
- BUG error is prompt when an environment is deleted although everything went well
- Cache some API requests (GET environments, GET channels and GET available packages).
- Available packages are now truncated to 100.
- Use query argument
$skipto skip N first packages
- If the list is longer than 100, a entry
$nextin the response is returned. This
is the request url to use to get the next batch of packages.
- Use query argument
- Report full error message in web browser console to ease debugging.
- BUG environment not shown
- BUG Installing package in develop mode fails if in user home or containing spaces
- Improve error feedback from API to frontend
conda searchcrashes for conda 4.6
- Add installation of package in development mode (through
- Add JupyterLab extension inspired by Anaconda Navigator
- Retrieve conda package description
- Add link to package website (if available)
- Support conda >=4.5
- Make all conda request asynchronously
- Use the automatic installation for Jupyter Notebook extension (see here)
- fix bug in check updates feature
- support conda 4.3
- support notebook security fix introduced in notebook 4.3.1
- fix environment export button
- allow environment names with one letter and validate against "suspicious" characters
- update to new jupyter_conda_kernels naming scheme
- namespace all API calls into
- fix usage in root environment
- minor build changes
- Update to notebook 4.2
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size jupyter_conda-3.1.1-py2.py3-none-any.whl (63.7 kB)||File type Wheel||Python version py2.py3||Upload date||Hashes View hashes|
|Filename, size jupyter_conda-3.1.1.tar.gz (146.9 kB)||File type Source||Python version None||Upload date||Hashes View hashes|
Hashes for jupyter_conda-3.1.1-py2.py3-none-any.whl