Can you share variables defined in a Python based cell with Scala cells?

aladda
Databricks Employee
Databricks Employee
 

aladda
Databricks Employee
Databricks Employee

Each databricks notebook has an indepedent Scala and Python shell/REPL. Thus variables defined in one can't be shared with the other. However Temp-Views are kept within the Notebook's own spark session and thus can be shared across different language cells and is a common technique to do so

View solution in original post

Imtiyaz_Shaikh
New Contributor II

The workaround is available here.

Idea is to use spark.conf.set(), spark.conf.get() methods.