Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2025 11:01 AM
Looking for ways to convert a Databricks notebook to Python library. Some context :
- Don't want to give execute permissions to shared notebooks as we want to hide code from users.
- Proposed solution is to have our shared notebook converted into a Python library. Goal is to import this Python library so users can create their own notebooks.
- Exploring the use of Python Wheels, but, these may be restricted in our environment (managed by another team with very strict security).
- Also tried converting code to UDFs but you cannot reference any spark in your code as UDF must be fully Python (cannot mix and match PySpark and Spark SQL in the same function).
- Besides wheels and library imports is there any other way where we can accomplish sharing code w/o users viewing the code?
Thanks.