> ## Documentation Index
> Fetch the complete documentation index at: https://anaconda.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Anaconda Assistant

Anaconda Assistant is your digital pair programmer for data science in [Anaconda Notebooks](https://auth.anaconda.cloud/ui/login)! Made for novice and intermediate JupyterLabs notebook practitioners—yet handy for users of all levels—this AI assistant can help you:

* Write and debug code
* Analyze data
* Visualize results

The number of prompts you can make to the Assistant per day differs based on your subscription plan. See our [pricing page](https://www.anaconda.com/pricing) for further details.

<Warning>
  The Anaconda Assistant is enabled by default for [organizations](/anaconda-platform/cloud/admin/organizations) with a Business plan subscription. To disable the Assistant for your organization, edit your [organization settings](/anaconda-platform/cloud/admin/organizations#organization-settings).
</Warning>

Follow this quickstart guide to learn how to make the most of your Anaconda Assistant.

<Tip>
  More of a visual learner? [Sign in to Anaconda.com](https://auth.anaconda.com/ui/login?return_to=https://anaconda.com/app/) and enroll in our free [Anaconda Assistant](https://learning.anaconda.com/courses/take/jupyter-notebook-basics/lessons/62524855-using-anaconda-assistant) course.
</Tip>

## Starting with a notebook

Anaconda recommends using the Assistant after you've loaded a DataFrame in your notebook.

<Note>
  Throughout the Assistant, *DataFrames* refer to Pandas DataFrames only, though certain dataframe types compatible with Pandas DataFrames could work as well.
</Note>

This can be done in a few different ways:

* If you're starting with an empty notebook, the Assistant provides you with the option to generate a DataFrame with random data, which you can then use to generate graphs and more.

* Use Anaconda data catalogs as a starting point:

  1. Open a new Launcher by clicking the blue plus <Icon icon="square-plus" iconType="solid" color="#3874CB" /> in the top-left corner.

  2. In the Launcher, under Anaconda Data Catalogs, click Explore Catalogs.

  3. Click <Icon icon="forward" iconType="solid" /> **Run All Cells** to restart and run all the cells available in your notebook. This will render the DataFrame(s) in the notebook.

* If you already have specific data you'd like to work with and a proficiency in Jupyter Notebooks, import the data and generate a DataFrame as you normally would.

## Accessing the Anaconda Assistant

There are a few methods you can use to access the Anaconda Assistant:

<Tabs>
  <Tab title="Anaconda Toolbox">
    Click **Chat-based Python Help** in Anaconda Toolbox.

    <Frame>
      <img src="https://mintcdn.com/anaconda-29683c67/9H-5W4tTlP7-Fn32/images/assistant_in_toolbox.png?fit=max&auto=format&n=9H-5W4tTlP7-Fn32&q=85&s=eccede1181273ce5797fa3c48ba9e5db" alt="" style={{ width: "400px" }} width="698" height="1400" data-path="images/assistant_in_toolbox.png" />
    </Frame>
  </Tab>

  <Tab title="Toolbar Icons">
    Click <Icon icon="sparkles" iconType="solid" color="#08CA4A" /> **Anaconda Assistant** on the right of your active notebook or the command toolbar at the top of your active notebook.

    <Frame>
      <img src="https://mintcdn.com/anaconda-29683c67/RrcW9wMhKvv6SrIo/images/assistant_in_toolbars.png?fit=max&auto=format&n=RrcW9wMhKvv6SrIo&q=85&s=383340a2885d71adbbc918f5d46fde83" alt="" width="2466" height="708" data-path="images/assistant_in_toolbars.png" />
    </Frame>
  </Tab>

  <Tab title="Cell Assistant">
    Click <Icon icon="sparkles" iconType="solid" color="#08CA4A" /> **Anaconda Assistant** in the cell toolbar or right-click within an active cell to display Assistant quick prompts.

    Use quick prompts for the entire cell or selected lines of code within the cell.

    <Frame>
      <img src="https://mintcdn.com/anaconda-29683c67/RrcW9wMhKvv6SrIo/images/assistant_in_cell.png?fit=max&auto=format&n=RrcW9wMhKvv6SrIo&q=85&s=11f28f747afd4f2a61edc5fa1a7907cd" alt="" width="1624" height="216" data-path="images/assistant_in_cell.png" />
    </Frame>
  </Tab>

  <Tab title="Keyboard Shortcut">
    Use the keyboard shortcut Ctrl+Shift+A (Windows)/Cmd+Shift+A (Mac).
  </Tab>
</Tabs>

## Using the Anaconda Assistant

Let's take a look at the different parts of the Assistant and what we can do with this tool.

<Frame>
  <img src="https://mintcdn.com/anaconda-29683c67/RrcW9wMhKvv6SrIo/images/assistant_anatomy.png?fit=max&auto=format&n=RrcW9wMhKvv6SrIo&q=85&s=0d6b6a65f6e3842ae1767052b4d1c72e" alt="" style={{ width: "400px" }} width="1066" height="1644" data-path="images/assistant_anatomy.png" />
</Frame>

<Steps>
  <Step title="Start a new chat">
    At any time, you can start a new Assistant session, or "chat," by clicking <Icon icon="clock-rotate-left" iconType="regular" /> **New chat**.
  </Step>

  <Step title="History of previous chats">
    View and return to previous chats by clicking <Icon icon="comment-plus" iconType="solid" /> **Chats history**.
  </Step>

  <Step title="Settings">
    Adjust where code is run in the notebook, enable or disable data collection and usage, and upgrade your account by clicking <Icon icon="gear" iconType="solid" /> **Settings**.
  </Step>

  <Step title="Assistant tasks">
    The Assistant allows you to perform a variety of functions, which are covered in the following section.
  </Step>

  <Step title="Text box">
    Ask your own questions and make unique requests using the text box at the bottom of the Assistant. Type `@` to add additional context to the chat, such as a related notebook file or a dataframe from the active notebook.
  </Step>

  <Step title="Chat limit used">
    Currently, each new chat allows a set amount of requests per 24-hour period. You may encounter a warning message when you reach the daily limit.
  </Step>

  <Step title="Attach to chat">
    Add a dataframe from the active notebook for the Assistant to analyze and manipulate.
  </Step>
</Steps>

## Get started

Explore code for various math equations and python projects independent of your notebook. Whether you're starting from scratch or looking to take your project in a new direction, the code examples on this page can serve as much needed inspiration.

Build upon results by asking for deeper analysis or changes to the code using plain English. Make sure you provide specific instructions to the assistant! The more specific you are, the better your results will be.

## Working with DataFrames

For notebooks containing DataFrames, the Assistant provides various methods for viewing and interacting with your data in a new way.

<Note>
  **Load a DataFrame** is the only option that will appear in the Working with DataFrames section of the Assistant if your notebook lacks a Pandas DataFrame. Running code to generate a DataFrame will trigger the availability of the other options.
</Note>

### Load a DataFrame

If you're starting with an empty notebook, this option will open a menu of DataFrames for you to load in your notebook, which you can then use to generate a wide variety of graphs. You can also ask questions about the generated code and request changes using plain English. Remember to be specific!

### Generate a graph for the DataFrame

This option generates a graph based on the DataFrame(s) in your notebook. If your notebook contains more than one DataFrame, you're prompted to select which DataFrame you want to generate a graph for.

Click **Get Code** to have the Assistant provide you with a list of various types of graphs (bar, heatmap, and so on) it can generate based on the data in the DataFrame. You're also presented with the code for generating the graph described in the first option listed, which you can then run in the notebook by clicking **Run in Notebook**, or you can copy the code to paste it yourself by clicking **Copy**.

If you want code for a different graph, or to see a new set of possibilities, use the text box to choose which graph you would like generated. Type something like the following:

* Generate the second idea
* Make a chart of #3, please
* Give me new options!

### Describe the data in the DataFrame

Analyze and visualize data more efficiently by having the Assistant generate a summary of—and potential use cases for—your DataFrame. This can be a great source of inspiration when you're struggling to clearly explain the value your data provides.

Ask follow-up questions to dive deeper into the results. For example, if you find an interesting trend in your data, you can ask the Assistant to further refine the analysis or provide recommendations.

### Suggestions for cleaning data

The Assistant can provide various means for "cleaning up" your DataFrame by standardizing inconsistent information, removing duplicates, checking for missing values, and more. If your notebook contains more than one DataFrame, you're prompted to select which DataFrame you want to clean.

For a brand new set of suggestions, click **Refresh Suggestions** at the top of the Assistant.

### More suggestions...

The Assistant can provide you with ideas for building upon your DataFrame, such as creating new visualizations, filtering based on specific conditions, removing unnecessary information, or even merging the DataFrame with an entirely new DataFrame.

For a brand new set of suggestions, click **Refresh Suggestions** at the top of the Assistant.

## Enhancing the Assistant experience

This section provides tips on improving your working experience with the Assistant.

### Course correcting the conversation

Sometimes, generative AI systems can encounter challenges when processing long conversations, leading to a decline in the quality of responses. If you find that the conversation is becoming less helpful to you, don't worry! Instead of restarting the entire conversation and losing the responses that *were* helpful to you, you can selectively remove messages by clicking <Icon icon="trash" iconType="solid" /> **Delete this and all messages below** in the prompt. By pruning the conversation, you can seamlessly resume interaction with the Assistant from a point where responses were still valuable and relevant.

<Frame>
  <img src="https://mintcdn.com/anaconda-29683c67/RrcW9wMhKvv6SrIo/images/assistant_delete_messages.png?fit=max&auto=format&n=RrcW9wMhKvv6SrIo&q=85&s=1443e7bab07cd778782c429eac73a579" alt="" width="482" height="874" data-path="images/assistant_delete_messages.png" />
</Frame>

### Setting code location

To change where code generated by the Assistant gets added to your notebook, click <Icon icon="gear" iconType="solid" /> **Settings**. Then, under **Run code in Notebook**, select from the dropdown a location where code should be added and run in the notebook.

<Frame>
  <img src="https://mintcdn.com/anaconda-29683c67/RrcW9wMhKvv6SrIo/images/assistant_run_code_location.png?fit=max&auto=format&n=RrcW9wMhKvv6SrIo&q=85&s=5be2e69eda0ba3975e6bceeae62f80c2" alt="" width="482" height="794" data-path="images/assistant_run_code_location.png" />
</Frame>

### Stopping a response from the Assistant

If you want to interrupt the Assistant mid-response (perhaps the Assistant misunderstood your prompt and is providing unnecessary information), press Enter (Windows)/Return (Mac) on your keyboard. Alternatively, you can click <Icon icon="circle-stop" iconType="solid" /> **Stop** in the text box.

<Frame>
  <img src="https://mintcdn.com/anaconda-29683c67/0MpEd19Y7pLtO1DQ/images/assistant_stop_streaming.png?fit=max&auto=format&n=0MpEd19Y7pLtO1DQ&q=85&s=61f99263b8135e965356c41050589b5f" alt="" width="482" height="873" data-path="images/assistant_stop_streaming.png" />
</Frame>
