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:ย 

Saveย default language of notebook into variable dynamically

NLearn
New Contributor II

 For one of the requirements of project, I want to save default language of notebook into variable based on notebook path mentioned dynamically.

For eg: if first notebook given by user in widget is having default language as Python then variable value should set to "Python" and if notebook has been changed to Scala then variable value should to "Scala" automatically.

1 REPLY 1

NLearn
New Contributor II

Hi Kaniz,

Thank you for sharing this information. Actually, in requirement, User is passing notebook path through widget which can be based on any language "Python", "SQL" and "Scala". but user is not providing information regarding language through any widget so, we have to open notebook manually to see in which language notebook has been created. 

So Is there any way that by knowing notebook path, we can get its default language and save in some variable?

 

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