Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Share additional variables between Python and Scala #25

Open
parente opened this issue Mar 28, 2017 · 2 comments
Open

Share additional variables between Python and Scala #25

parente opened this issue Mar 28, 2017 · 2 comments

Comments

@parente
Copy link
Contributor

parente commented Mar 28, 2017

If possible:

  1. Share a Spark session / context initialized from Python with code running in %%scala cells. As it stands, the first scala cell tries to initialize another Spark context which fails.
  2. Share additional variables between Scala and %%python cells. This is already somewhat possible using the interpret and last_result calls but can be made prettier.
@mariusvniekerk
Copy link
Collaborator

So for 1 the idea is to use the %%init_spark magic

@ksangeet9ap
Copy link

Hi @mariusvniekerk, could you provide details about how I might achieve that i.e using python SparkContext inside scala?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants