How do I store an environment file in Code Workbook?

I want to store an environment.yml file within Code Workbook so I don’t have to call common libraries every time I write a new code.

It is not possible to use an environment.yml file - instead, Code Workbooks manages the conda environment (Docs). The initial conda environment is defined in profiles which can be configured by administrators. End users can customize the profile to add or remove specific conda packages, by navigating to Environment > Configure Environment > Customize profile. Note that custom profiles may take longer to start up. More details on the environment optimizations

If the question is about importing common libraries (like import pandas as pd), we recommend using the Global Code. The code authored there will be executed before any cell is ran.

1 Like