cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

Using widget values in a shell script cell

fijoy
Contributor

I have a Databricks notebook containing a mix of SQL, Python, and shell script cells. I know I can retrieve and use values of widgets in Python cells using dbutils.widgets.get('key') and in SQL cells using ${key}.

How can I use widget values in shell script cells?

1 ACCEPTED SOLUTION

Accepted Solutions

fijoy
Contributor

For those interested, I found and am for now using this workaround:

https://stackoverflow.com/questions/54662605/how-to-pass-a-python-variables-to-shell-script-in-azure...

while I wait for a more direct method.

View solution in original post

1 REPLY 1

fijoy
Contributor

For those interested, I found and am for now using this workaround:

https://stackoverflow.com/questions/54662605/how-to-pass-a-python-variables-to-shell-script-in-azure...

while I wait for a more direct method.

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.