Is it possible to build a library using Code Repositories and then call that library in a Code Workbook?
Using a Code Repositories library in a Code Workbook
469 views Asked by Andrew St P At
2
There are 2 answers
0
On
This is a simple way to do it for testing purposes.
Create the library
Create the repository of Python Library type:
Add the function:
You can inspect the library name in the file gradle.properties.
Note: underscores_
will be translated into hyphens-
Commit and pull into the master branch.
Create a new tag (necessary) and wait until Checks pass.
Create Code Workbook
Create a new code workbook in the same project:
"Environment" -> "Customize Spark environment".
Click "Customize profile".
Search for and add your library:
Click "Update environment" and wait until the customized environment initializes.
Result
Yes. You need to ensure that the shared channel that libraries are published to from Code Repositories is configured in the Code Workbook profile's
conda-environment.shared-channel-dependencies
setting.Please work with your Palantir Support Team to get this backend configuration change made.