Adding packages to a project

Add packages to your existing project from inside a JupyterLab editing session.

  1. On the left tabs, click the Project tab, find the Packages field, and click the Edit pencil icon.

    ../../_images/ae51-project-add-package-1.png

  2. Enter the name of the package you want to add and select from the list of options.

    ../../_images/ae51-project-add-package-2.png

  3. When you are done, click the Save button at the bottom of the Packages section.

  4. Confirm that the package has been added to your anaconda-project.yml.

    TIP: If anaconda-project.yml is already open, close and reopen it to see changes.

    ../../_images/ae51-project-add-package-3.png

In Jupyter Classic or using the CLI

If you are working in Jupyter Classic notebook or prefer to add packages using the command line interface (CLI), open a terminal and run anaconda-project add-packages followed by the package name and optionally the version.

EXAMPLE: To add the packages Bokeh and pandas:

anaconda-project add-packages bokeh=0.12 pandas

The command will take a moment to run as it collects the dependencies and downloads the package.

You can confirm that the package has been added by opening your anaconda-project.yml.

TIP: If anaconda-project.yml is already open, close and reopen it to see changes.