spylon-kernel
spylon-kernel copied to clipboard
Share additional variables between Python and Scala
If possible:
- Share a Spark session / context initialized from Python with code running in
%%scalacells. As it stands, the first scala cell tries to initialize another Spark context which fails. - Share additional variables between Scala and
%%pythoncells. This is already somewhat possible using theinterpretandlast_resultcalls but can be made prettier.
So for 1 the idea is to use the %%init_spark magic
Hi @mariusvniekerk, could you provide details about how I might achieve that i.e using python SparkContext inside scala?