Code Assist is automatically installed in Domino version 5.5 and above.
For Domino versions 5.4 and below, choose the right installation method depending on how often and where you want to access Code Assist.
You need the following minimum Python and Python package versions to install Code Assist:
-
python >= 3.6
-
plotly >= 5.5
-
JupyterLab == 3
If you plan to install the latest DCA version with AutoML and Foundation Models features (1.3.0+), you will also need the following specific Python package versions:
-
mlflow >= 2.4
-
transformers ⇐ 4.29.2
-
datasets == 2.12.0
-
torch == 2.0.1
-
accelerate == 0.19.0
Installing Domino Code Assist in a Workspace is easiest way to get started with Code Assist.
If you don’t have a Jupyter, JupyterLab, or RStudio workspace, learn how to launch a workspace.
The next steps depend on the language you want to use: Python (Jupyter or JupyterLab) or R (RStudio).
Run the following command in a notebook code cell:
!pip install --user domino-code-assist

After the installation completes, refresh your browser tab. The
button appears in the Jupyter toolbar. Click this button to initialize Code Assist.
Note
|
When you pip install domino-code-assist, Domino automatically adds Code Assist to the requirements.txt file for the project. This means that all subsequent executions (including workspaces) will install Code Assist. To learn more, see Use requirements.txt.
|
Upgrade an existing installation:
We do not recommend upgrading Code Assist with pip install --upgrade
.
If you specified a specific version in your pip install, edit the requirements.txt
file for your project to use the latest version of Code Assist.
If you didn’t specify a version in your pip install, start a new workspace to automatically install the latest version of Code Assist.
After installing Code Assist in a project, Code Assist will be available to all Workspaces in the project.
Use a requirements.txt
file to install Python packages into a new workspace within a project. Navigate to Files to check whether you have a requirements.txt
file.

If you do have a requirements.txt
file, it’ll be listed with your other files. Proceed with these steps:
-
Click on the
requirements.txt
file link. -
Click the
button. -
Add the
domino-code-assist
package to yourrequirements.txt
file. You can specify a version likedomino-code-assist==0.4.1
. If you don’t specify a version, the latest version is installed. -
Click the
button.
If you don’t have a requirements.txt
file, follow these steps:
-
Download our requirements-how-to.txt
-
Press the Upload button. Either drag and drop or browse to find the
requirements.txt
file. -
Click the
button.
After you complete the installation, create a new Jupyter or JupyterLab workspace and use the
button to launch Code Assist.Enable Code Assist in your organization’s most used compute environments (CE) to have Code Assist appear automatically in any Jupyter, JupyterLab, or RStudio workspace configured with that CE. However, you must rebuild the CEs whenever there is a Code Assist update. If you cannot rebuild CEs weekly, rather install Code Assist in a Workspace or Project.
-
Select Environments from the side navigation bar.
-
Choose the environment to install Code Assist into.
-
Click the Edit Definition button.
-
Add this line to the end of the
Dockerfile
section (but before the lastUSER ubuntu
command):
RUN pip install --user domino-code-assist
-
Click the Build button at the bottom of the page
This installs Code Assist in every Workspace that uses the Domino environment.
Install Domino Code Assist directly from the package source. Use this method if you’re in an air-gapped environment and can’t use the other installation methods due to lack of internet connectivity.
-
A public archive with the Code Assist package and its dependencies is available at https://mirrors.domino.tech/. The archive names reflect the required Code Assist and Python versions. Here are some examples:
-
dca-1.0.5-python-3.9.zip
— Code Assist-1.0.5 and Python-3.9 -
dca-1.0.5-python-3.8.zip
— Code Assist-1.0.5 and Python-3.8 -
dca-1.0.4-python-3.9.zip
— Code Assist-1.0.4 and Python-3.9
-
-
Find the version of Python running in your Domino Workspace and then download the appropriate archive. For example, Code Assist-1.0.5 for Python-3.9 would be downloaded from https://mirrors.domino.tech/dca/python/dca-1.0.5-python-3.9.zip.
-
Upload the archive onto Domino using the Files tab.
-
In a Jupyter workspace on Domino run the following commands to install the package.
# Check current folder. Should be /mnt. %pwd # Unzip the archive (assumes that the archive is in /mnt). !unzip -q dca-1.0.5-python-3.9.zip # Change into the resulting folder. %cd dca-archive # Check for the Code Assist package filename (optional). !ls domino_code_assist* # Install the package and all dependencies. !pip install --user --no-index --find-links=. domino_code_assist*.whl
There might be some errors generated by
pip
, but you can usually ignore them. -
Test that the installation was successful by importing the package.
import domino_code_assist
To upgrade, edit the requirements.txt
file to specify the latest version of Code Assist. Alternatively, if you don’t specify a version, Domino automatically pulls the latest version when building compute environments.
Now that you’ve installed Domino Code Assist, learn how to load data with Code Assist.