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
541 views Asked by Andrew St P At
2
There are 2 answers
0
ZygD
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
Related Questions in SHARED-LIBRARIES
- Keep multi-version of a static-lib like what we do for shared-libs
- Link shared library through makefile
- how to test .dll on Linux
- installing 'xiaomi notes.apk' through adb on chromebook getting error
- bazel 6.5.0 build: failing to link external non-bazel shared library
- can't reference netstandard2.0 library if a reference to CodeAnalysis.CSharp is present
- HDF5 Library: Works for Running Binary but Fails to Recompile — Why?
- How to resolve the shared library of a function in core file, using GDB - when no symbols are loaded?
- How to use "APP_INITIALIZER" into a library with standalone components
- Use Conan to manage runtime dependencies
- Defining a Global Variable from Library Object
- The problem with explicitly linking the library
- The problem with the explicit dynamic library
- Linux: how can I force my process to free unloaded libraries?
- LoadLibrary error while using libtorch with ROS2
Related Questions in PALANTIR-FOUNDRY
- Has the hubble:icon Type Class been deprecated?
- Quiver pivot table from linked Object sets
- Manipulate GeoJSON Data via Typescript Function in Palantir Foundry
- Rest API: Is there any endpoint that provides dataset lineage info?
- Create charts in workshop based on two objects
- Using a Code Repo to call a Webhook created in Palantir Foundry
- How do you manage static data in Palantir Foundry?
- How do I get values from Palantir Foundry Workshop app into a PDF?
- What object types are avaliable for export on <hostname>/phonograph2-export/api/?
- Run Docker Containers on an Existing Kubernetes Cluster on Palantir Foundry
- Delete all rows with duplicate values in column in Palantir Foundry Countor
- Use of ngraph.path library in Palantir - Foundry
- Generate PDF files using transforms api in code repositories and save to foundry
- Palantir Foundry - Making http request and capturing JSON response
- How to publish a Spark ML pyspark.ml.PipelineModel object in code repositories?
Related Questions in FOUNDRY-CODE-REPOSITORIES
- Generate PDF files using transforms api in code repositories and save to foundry
- How to upload large unstructured dataset into a MediaSet in Palantir Foundry?
- How to filter out specific rows of dataframe in pyspark?
- How to use Broadcast in Foundry code repository
- Python Inner Join Returns No Rows but Contour Does
- Load h5 file with keras in Foundry code repository
- How to convert a Dataset of PDFs to a Media Set?
- Is there any way in foundry by which we can validate the attachment while uploading it to ontology object type using attachment property?
- Pass a whole dataset contains multiple files to HuggingFace function in Palantir
- How to add a column as a file name to a parsed dataset in Palantir Foundry?
- How to revert/roll back to an earlier commit in Foundry Code Repo
- How do I ensure a build has consistent provenance records so it can run incrementally?
- check if rows are already present in pyspark dataset
- Palantir Foundry fail to set link between two objects
- How do I update part of a dataset without doing a snapshot build of the whole dataset?
Related Questions in FOUNDRY-CODE-WORKBOOKS
- Palantir code workbook / Python, write xmls to files
- Why are visualizations not appearing on the correct nodes in Code Workbook?
- How to source R file in palantir foundry code-workbook
- Deleting dataset branches in Palantir Foundry
- Palantir foundry code workbook, export individual xmls from dataset
- How to install the latest version of the library plotly.express in Code Workbook?
- How to use when and Otherwise statement for a Spark dataframe by boolean columns?
- How do you parse pdf files from a raw dataset in Foundry?
- How to keep a unique set of keys with an incremental transformation in Palantir Foundry?
- In Foundry, how can I Hive partition with only 1 parquet file per value?
- Best way to modify downstream references to a code workbook dataset to point to the new code repository dataset created using helper?
- In Palantir Foundry how do I parse a very large csv file with OOMing the driver or executor?
- In Palantir Foundry, how do I debug pyspark (or pandas) UDFs since I can't use print statements?
- How can I declare current_date as variable in global code (Code Workbook)
- How are executors assigned in Code Workbooks in Palantir Foundry?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)









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-dependenciessetting.Please work with your Palantir Support Team to get this backend configuration change made.