cancel
Showing results for 
Search instead for 
Did you mean: 
Community Discussions
cancel
Showing results for 
Search instead for 
Did you mean: 

Hide widgets logic

elgeo
Valued Contributor II

Hello,

We have recently created a notebook in order to allow users inserting/updating values in specific tables. The logic behind the update statements is included in a separate notebook where users don't have access. However we would like to know if there is a way to hide/separate also the widgets logic that is for example:

dbutils.widgets.removeAll()
dbutils.widgets.dropdown(" Action", "get", ["get", "insert", "update"])
 
Edit the share permissions on the notebook as "run" only doesn't seem to work. User still has the right to change the above code.
 
Thank you,
Eleni
2 REPLIES 2

Hubert-Dudek
Esteemed Contributor III

When you want users to perform some write action (for example, change parameters, etc.), it is usually easiest to build a small app in Azure PowerApps, save those values, and extract them to the table in Delta Lake (so your notebooks will take values as defined per users from the table).

Lakehouse apps are also coming to Databricks, so it will probably be another way to achieve that when you don't want users to mess with code.

Kaniz
Community Manager
Community Manager

Hey there! Thanks a bunch for being part of our awesome community! 🎉 

We love having you around and appreciate all your questions. Take a moment to check out the responses – you'll find some great info. Your input is valuable, so pick the best solution for you. And remember, if you ever need more help , we're here for you! 

Keep being awesome! 😊🚀

 

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.