getContext() in dbutils.notebook not working in DBR 11.2 10.4 LTS Shared ModeIt's also working in no isolation Mode in DBR 11.2

parthsalvi
Contributor

We are trying to fetch notebook context in our Job logging workflow.

 

current_context = dbutils.notebook.entry_point.getDbutils().notebook().getContext().toJson()

 

We were able to access this in DBR 10.4 custom mode but in DBR 10.4 & 11.2 (Shared Mode) we get the attached error.

 

Has the method to access notebook context change in newer DBR version or it's not available at all ?

 

image