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

pass string variable into sparkmagic #750

Open
vadensam opened this issue Mar 3, 2022 · 0 comments
Open

pass string variable into sparkmagic #750

vadensam opened this issue Mar 3, 2022 · 0 comments

Comments

@vadensam
Copy link

vadensam commented Mar 3, 2022

hi,
I am trying to cycle through date variables as strings in jupyter hub and run a spark session for each date.

startdate
enddate
finaldate
while startdate != finaldate:
v_start = startdate
v_end = enddate
%run /path/to/notebook
startdate+=1
enddate +=1

notebook being run from the call above

%%spark
var start = $v_start
var end = $v_end
.....

This does not work. can't pass in those variables

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

No branches or pull requests

1 participant