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
538 Views Asked by Andrew St P At
2
There are 2 best solutions below
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
- Global variable in shared library
- How to load all symbols from shared library on start up?
- What happens when ld link different versions of the same library
- MapReduce job fails with ExitCodeException exitCode=255
- Android NDK - Including prebuilt static libraries gives undefined reference errors
- Detecting unresolved symbols in an ELF executable
- How to structure Xamarin library containing iOS & Android bindings?
- How do I share headers and libraries in subdirectory by cmake?
- Using 32-bit library from 64-bit application with perl or neko
- about Multiple dex files define Lcom/google/gson/JsonSerializer
- How do I install the Matlab MCR in Ubuntu 14.04 without "killing" Unity?
- How do Linux programs know where the library files are and how to call them?
- Linux ELF - Why does normal linking run faster than 'ldd -r'?
- How to include a "custom" library in Code::Blocks? (Windows 7)
- Error Linking OpenCV Libraries
Related Questions in PALANTIR-FOUNDRY
- How do I configure a Contour heatmap to display colors for small overall data?
- Embed a Contour board in an iframe in Object Explorer or Slate
- In Foundry Contour, how can I analyze a prior version of a dataset?
- How do I make a Foundry Slate container collapsible?
- How to decrypt AES-encrypted files with Data Connection?
- Does Foundry Data Connection support NFS transfer?
- How do I enforce a minimum test coverage percentage in my Foundry Code Repositories?
- Data Connection - downloading files from multiple URLs in one sync
- How to configure Code Workbook's timezone for CURRENT_TIMESTAMP?
- install JAR package related to pyspark into foundry
- How to access report parameters array in fusion spreadsheet
- How to create a dataset from a fusion sheet in foundry?
- How can you use Data Connection to sync a dataset with only a schema and no rows?
- How can I get the minimum value of multiple columns in contour?
- How do I transform the data set into a dictionary inside the repo. I am using pyspark within foundry
Related Questions in FOUNDRY-CODE-REPOSITORIES
- How do I enforce a minimum test coverage percentage in my Foundry Code Repositories?
- How do I transform the data set into a dictionary inside the repo. I am using pyspark within foundry
- How to create python libraries and how to import it in palantir foundry
- Is adding a column description via write_dataframe aware of the branch it is run on?
- how to access the data frame without my_compute_function
- Python unit tests for Foundry's transforms?
- How do I compute my Foundry 'latest version' dataset faster?
- How do I make my many-join / many-union datasets compute faster?
- Is there a way to populate column descriptions specific to data set?
- How to revert/roll back to an earlier commit in Foundry Code Repo
- How to add a column as a file name to a parsed dataset in Palantir Foundry?
- Pass a whole dataset contains multiple files to HuggingFace function in Palantir
- How to upload dataset without authentication in Palantir foundry
- How can I copy code from one Code Repository to another in Foundry?
- In Palantir Foundry, how should I get the current SparkSession in a Transform?
Related Questions in FOUNDRY-CODE-WORKBOOKS
- How to configure Code Workbook's timezone for CURRENT_TIMESTAMP?
- Is it possible to build datasets in Foundry Code Workbook via parameters in Reports?
- How to deal with "could not execute broadcast in 300 secs"?
- Can I save a .png in a Foundry Code Workbook?
- Using a Code Repositories library in a Code Workbook
- Is it possible to render multiple plots within a single node in Code Workbooks?
- Why is the “Create New Template” button in Code Workbook greyed out?
- Duplicating or using Save As for a Code Workbook
- How do I get an admin view of Code Workbook modules?
- How do I generate authentication tokens within Foundry Code Workbook to use as an argument to APIs?
- How do I display a matplotlib plot in the console in Foundry Code Workbook?
- How do I access an old transaction of a dataset in Code Workbook?
- Pyspark Getting the last date of the previous quarter based on Today's Date
- How do I turn a list of JSON objects into a Spark dataframe in Code Workbook?
- How do you convert a string column (with 4-digit year values) to a DATE type in Foundry Code Workbooks?
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)
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?









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.