Managing Dependencies
Adding Dependencies
To add a new library to your project:- Click the New Dependency button.
- Enter the PyPI package name (e.g.,
pandas,requests) OR the URL pointing to a specific package distribution. - The system will attempt to resolve and install the package.
Davinci runs Python code directly in the browser using a WebAssembly environment. Not all Python packages are compatible, particularly those that rely on C-extensions not compiled for WebAssembly (WASM).
Removing Dependencies
To remove a package that is no longer needed:- Find the package in the dependencies list.
- Click the trash can icon on the right side of the row.
Pre-installed Packages
Davinci comes with a set of commonly used scientific and utility packages pre-installed. You do not need to add these as dependencies. See the Code View documentation for a full list of available pre-installed packages (includingnumpy, scipy, matplotlib, and more).
Version Control
Dependencies are tracked as part of your project configuration in Version Control.- Branch Consistency: Different branches can have different sets of installed dependencies. If code works on one branch but not another, check the Dependencies list to ensure required packages are installed.
- Merging: Dependency configurations are merged automatically. Unlike model objects, dependencies cannot generate merge conflicts; the system handles the reconciliation of package lists during a merge.