IBM Support

Unable to import local py function when Spark runtime is used

Troubleshooting


Problem

In JupyterLab, I created a python function under a subdirectory and called it from a notebook like the following. As you can see, import worked fine when Python runtime is used.

work fine


However, import failed when Spark runtime is used.

doesn't work

Document Location

Worldwide


[{"Type":"MASTER","Line of Business":{"code":"LOB76","label":"Data Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSHGYS","label":"IBM Cloud Pak for Data"},"ARM Category":[{"code":"a8m3p0000006xtCAAQ","label":"Services"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"4.5.0;and future releases"}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

More support for:
IBM Cloud Pak for Data

Component:
Services

Software version:
4.5.0 and future releases

Document number:
7099245

Modified date:
18 December 2023

UID

ibm17099245

Manage My Notification Subscriptions