Adding Anaconda Assistant to Workbench
Anaconda Assistant is the AI pair programmer developed by Anaconda to assist you with coding in your Jupyter Notebooks. You can install the Anaconda Assistant as an optional component of the Data Science & AI Workbench.
Installing Anaconda Assistant
-
Open a browser and log in to Workbench as the
anaconda-enterprise
user. -
Open any existing project and view its settings.
-
If necessary, change the Default Editor to JupyterLab.
-
Open a project session.
-
Open a terminal window in your project session.
-
Download the Anaconda Assistant tarball and its checksum by running the following commands:
-
Verify the checksum of the files you downloaded by running the following command:
-
Unpack the tarball you just downloaded into the tools directory by running the following command:
Keep this session open while you enable the Anaconda Assistant.
Enabling the Anaconda Assistant
Obtaining an API Authentication token
To enable the Anaconda Assistant, you must have an Anaconda.com account. If you do not have an Anaconda.com account, create one now.
You must obtain your token from a machine that has connectivity to https://anaconda.com
.
Anaconda Assistant utilizes a token that must be generated using the anaconda-auth
package, which is available in Anaconda’s default channel. This token provides your Workbench instance with access to the Anaconda Assistant API.
-
Open a terminal application outside of Workbench on your machine.
-
Install
anaconda-auth
by running the following command: -
Authenticate to Anaconda by running the following command:
-
If prompted, select
anaconda.com
and press Enter (Windows)/Return (Mac). -
Use the browser window that appears to log in to Anaconda using your account credentials.
You can close the window once you are logged in.
-
Return to your terminal application (outside of Workbench) and generate your authentication token by running the following command:
The command returns a random string of characters. That is your authentication token!
Store your token in a secure location!
Setting environment variables
-
Connect to your Workbench Kubernetes cluster.
-
View a list of your configmaps by running the following command:
-
Edit the
anaconda-enterprise-env-var-config.yml
file. -
Include the following lines:
-
Save your work and close the file.
-
Update Workbench with your changes and restart services by running the following command:
Verifying installation
With the tarball extracted into the /tools
volume and your Anaconda API key stored as a system variable, return to Workbench and create a new project with JupyterLab as its default editor. You will see the Anaconda Assistant on the right hand side of the screen when you open a notebook (.ipynb
) file.
For more information about how to use the Assistant, see the Anaconda Assistant quickstart guide.
Was this page helpful?