cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
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.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group