Skip to main content

Manage your conda environments from the Jupyter Notebook and JupyterLab

Project description

jupyter_conda

Install with conda npm Build Status Build status Coverage Status

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.

Install

Requirements

  • 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:

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.

JupyterLab

This extension add a new entry Conda Packages Manager in the Settings menu.

jupyterlab_conda_extension

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 2, Python 3, or R to 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 ipykernel package 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

Development

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 .

Changelog

3.0.0

  • Rework the server/client API to be more REST
  • 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 labextension\src\__tests__\services.spec.ts)
    • Improve the UI reactivity by using react-virtualized for the packages list
    • Improve the look and feel
  • Available packages truncation has been removed.

2.5.1

  • Catch SSLError when requesting channeldata.json file

2.5.0

  • 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 $skip to skip N first packages
    • If the list is longer than 100, a entry $next in the response is returned. This
      is the request url to use to get the next batch of packages.
  • Report full error message in web browser console to ease debugging.

2.4.2

  • 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

2.4.1

  • BUG conda search crashes for conda 4.6

2.4.0

  • Add installation of package in development mode (through pip)

2.3.x

  • 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)

2.2.1

  • fix bug in check updates feature

2.2.0

  • support conda 4.3
  • support notebook security fix introduced in notebook 4.3.1

2.1.0

  • fix environment export button
  • allow environment names with one letter and validate against "suspicious" characters

2.0.0

  • update to new jupyter_conda_kernels naming scheme
  • namespace all API calls into /conda/

1.1.0

  • fix usage in root environment

1.0.1

  • minor build changes

1.0.0

  • Update to notebook 4.2

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jupyter_conda-3.0.0.tar.gz (143.0 kB view details)

Uploaded Source

Built Distribution

jupyter_conda-3.0.0-py2.py3-none-any.whl (62.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file jupyter_conda-3.0.0.tar.gz.

File metadata

  • Download URL: jupyter_conda-3.0.0.tar.gz
  • Upload date:
  • Size: 143.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.8

File hashes

Hashes for jupyter_conda-3.0.0.tar.gz
Algorithm Hash digest
SHA256 dc28d2ba352562b5da90876f5bdf565f065c37f2d008a5f8a64fa1d26e6bd2a6
MD5 582fe24aaba30360164f80281bffabec
BLAKE2b-256 e694621d769b6ec491bed64fadc5bf0b8cc63ff4191a15e36dc79bb72f78eaa6

See more details on using hashes here.

File details

Details for the file jupyter_conda-3.0.0-py2.py3-none-any.whl.

File metadata

  • Download URL: jupyter_conda-3.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 62.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.8

File hashes

Hashes for jupyter_conda-3.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 cec1bd5c4a39a93dddfb08d1f8c4364af6ad6aae0a7d88704dda9e4c562bdbd3
MD5 cec9e7b0131ec933a9aed8fc7262ff65
BLAKE2b-256 c41ef392fedf2bdc446169f761ff88c87518a005f14db0abd2f8d411c0ffc235

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page