How can I programmatically get my notebook default language?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2023 01:11 AM
I'm writing some code to perform regression testing which require notebook path and its default language. Based on default language it will perform further analysis. So how can I programmatically get my notebook default language and save in some variable.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2024 03:05 PM
You can get the default language of a notebook using dbutils.notebook.get_notebook_language()
try this example:
%python
import dbutils
default_language = dbutils.notebook.get_notebook_language()
print(default_language)

