anaconda-project.yml
. This file is crucial for orchestrating a project’s components for deployment and ensuring operational consistency over time. There are several parameters that must be included within each project’s anaconda-project.yml
file to ensure that it operates as intended:
anaconda-project.yml
file. By default, Workbench is configured to use packages from its internal repository to create project environments. However, it is possible to use packages from external repositories.anaconda-project.yml
file manually to add the required configurations; however, this method is prone to human error, especially for users who are unfamiliar with .yml
file formatting.Instead, Anaconda recommends using anaconda-project
commands from a terminal within your project to update its configurations when possible. For more information about anaconda-project
, see the official documentation here.All anaconda-project
commands must be run from the lab_launch
environment! Enter the lab_launch
environment by running the following command in a project terminal:notebook
package in your project’s environment.preparing
. Once initialization is complete, you will see a file named prepare.log
. To troubleshoot environment initialization, view the log from the terminal by running the following command:
conda install
to add a package using the conda environment during a session, which impacts the project during the current session only.
anaconda-project.yml
file:
lab_launch
environment.anaconda-project.yml
file. If the file is open when you run the command, close and reopen it to view your changes.
6. Commit and push your updates to the project.
7. Stop and re-start the project session.
pip
install a package, you can use anaconda-project
to add it to your project’s configuration.
To add a pip
package to your project’s anaconda-project.yml
file:
lab_launch
environment.
anaconda-project.yml
file:
lab_launch
environment.
anaconda-project.yml
file:
lab_launch
environment.
anaconda-project
documentation.
anaconda-project.yml
file. These commands specify how the project’s components, such as notebooks, scripts, or generic web frameworks, should be executed when the project is deployed.
To add a command to your project’s anaconda-project.yml
file:
lab_launch
environment.
anaconda-project
documentation.
Example deployment commands
anaconda-project.yml
and verify your project will deploy successfully:
lab_launch
environment.
test_deployment
command. This sets up a mini web application, allowing you to preview your deployment locally using a port within your session.
lab_launch
environment.
commands:
section of the projects .yml
configuration file will be run.anaconda-project.yml
file configurations to a fixed state:
lab_launch
environment.
anaconda-project-lock.yml
file for your project.