==============================
Getting started with Navigator
==============================

Anaconda Navigator is a desktop application that is built on top of the conda package and environment manager. Navigator enables you to use conda to manage environments and packages, but in a graphical application instead of a command line interface (CLI).

This short guide takes you through the basic steps of using Navigator.

.. note::
   
   Conda's `getting started guide <https://conda.io/projects/conda/en/latest/user-guide/getting-started.html>`_ goes through some of these same instructions while using the conda CLI.

Before you start
================

You should have already :doc:`installed Anaconda Distribution <../anaconda/install>`, which contains the Navigator application.

.. _navigator-starting-navigator:

Starting Navigator
==================

Navigator starts by default when Anaconda Distribution is first installed. If you have installed Anaconda Distribution before, open Navigator using the following instructions:

.. tab-set::

   .. tab-item:: Windows
      
      From the Start menu, search for "Anaconda Navigator" and click to open.

   .. tab-item:: MacOS
      
      Open Launchpad, then click the Anaconda-Navigator icon.

   .. tab-item:: Linux
      
      #. Open a terminal window.
      #. Open Navigator by using the following command:

         .. code-block::
            
            anaconda-navigator

Managing Navigator
==================

.. note::

   When Navigator opens, it verifies that Anaconda is installed. If Navigator does not start up properly, see the :doc:`Troubleshooting <../reference/troubleshooting>` page.

When you start Navigator, it automatically checks for a new version. If Navigator finds a new version, you will see a dialog box like this:

   .. thumbnail:: ../navigator/img/navigator-new-update.png
      :align: center

Click **Yes** to update Navigator to the current version.

.. tip::
   Anaconda recommends keeping Navigator updated to the latest version.

Managing application tiles
==========================

By default, all application tiles available to launch or install within Navigator are displayed on the Home page. Filter the application tiles with the applications dropdown menu.

.. thumbnail:: ../navigator/img/nav-application-dropdown.png 
   :align: center

The dropdown contains filters for all applications, applications that are installed on your computer, applications that are not installed, and applications that have an update available.

.. _navigator-managing-environments:

Managing environments
=====================

Navigator uses the conda package and environment manager to create conda environments. Conda environments are directories within your file system that contain a specific collection of packages and package dependencies. Environments are isolated from one another and enable you to quickly switch between projects with drastically different needs.

In this example, we will create a new environment named ``myenvironment``:

#. On the **Environments** page, click **Create**.

   .. thumbnail:: ../navigator/img/nav-getting-started-create.png
      :align: center

#. In the **Environment** name field, type a descriptive name for your environment.
#. Click **Create**. Navigator creates the new environment and activates it.
#. Now you have two environments: the default environment ``base (root)`` and ``myenvironment``.

   .. caution::

      Anaconda does not recommend working in your base environment.

#. Switch between environments by clicking the name of the environment you want to use. This will deactivate the first environment and activate the environment you just selected.

   .. tip::
      The active environment is the one with the arrow beside its name.

For more documentation on environments, see :doc:`Managing environments <tutorials/manage-environments>` in the Tutorials section.

Managing Python
===============

When you create a new environment, Navigator installs Python |default-python-version| by default. To use a different version of Python in a given environment:

* specify when you create the environment
* change the Python package version in an existing environment

Changing the Python version when creating an environment
--------------------------------------------------------

In this example, we will create a new environment named ``python39`` that contains Python 3.9.18:

#. On the **Environments** page, click **Create**.
#. In the **Environment name** field, type the descriptive name "python39".
#. Select *3.9.18* from the **Python** dropdown.
#. Click **Create**.

Changing the Python version in an existing environment
------------------------------------------------------

In this example, we will change the Python version of ``myenvironment`` to Python 3.12.0:

#. On the **Environments** page, select ``myenvironment`` (which we created in the :ref:`Managing environments <navigator-managing-environments>` section above) from the environment list to activate it.
#. Select *Installed* from the package filter dropdown.

   .. thumbnail:: ../navigator/img/nav-getting-started-not-installed.png
      :align: center

#. Select the Python package checkbox and hover over *Mark for specific version installation*.
#. Select *3.12.0* from the dropdown that appears.
#. Click **Apply**.
#. A dialog listing all the packages that will be modified appears. Click **Apply**.

.. _navigator-managing-packages:

Managing packages
=================

On the **Environments** page, you can:

* View which packages are in each environment
* Search for and install new packages
* Upgrade existing packages
* Delete packages

In this example, we will install a package called ``beautifulsoup4`` into ``myenvironment``.

#. On the **Environments** page, select ``myenvironment`` from the environment list to activate it.
#. Open the package filter dropdown and select *Not installed* to view a list of packages that are available to install from the channels you are connected to.
#. Type "beautifulsoup4" into the **Search packages** box.
   
   .. thumbnail:: ../navigator/img/nav-beautiful-soup-install.png
      :align: center

#. Select the checkbox beside ``beautifulsoup4`` in the package list.
#. Click **Apply**.
#. A dialog appears that lists all packages that will be installed. Click **Apply**.
#. Open the package filter dropdown and select *Installed*.

The newly-installed ``beautifulsoup4`` package is now displayed in the list of installed programs in the current environment.

For more documentation on packages, see :doc:`Managing packages <tutorials/manage-packages>` in the Tutorials section.

Managing channels
=================

By default, Navigator searches in and installs packages from Anaconda's free public repositories, also known as ``defaults``. This contains the package repositories ``main``, ``r``, and ``msys2`` (Windows only), which are hosted at `repo.anaconda.com/pkgs/ <https://repo.anaconda.com/pkgs/>`_. There are many more package channels available, hosted on Anaconda.org, in Anaconda Cloud, or in an on-premises server, if your organization hosts their own packages via Anaconda Server.

In this example, we will add a channel connection to conda-forge in Navigator's channel manager.

#. Click **Channels**.
#. Click **Add...**.
#. Enter "conda-forge" into the textbox that appears.
#. Press Enter (Windows)/Return (Mac) on your keyboard.
#. Click **Update channels**.

Your package search within Navigator will now also include packages available via conda-forge.

For more documentation on channels, see :doc:`Managing channels <tutorials/manage-channels>` in the Tutorials section.

More information
================

* `Community support <https://community.anaconda.cloud/>`_
* `Paid support options <https://anaconda.cloud/support-center>`_
* `Learning resources <https://learning.anaconda.cloud?utm_campaign=learning&utm_medium=documentation&utm_source=anacondadocs&utm_content=navgsg>`_
