Skip to content

Magics support %run and %import_ipynb #867

Answered by devstein
flowy0 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @flowy0 Dosu is right, but its explanation isn't slightly off.

Sparkmagic is a wrapper around the Apache Livy REST API. All executed notebook cells are sent to the the Spark cluster via the Apache Livy's REST API, which means all cells are executed in the context of the Spark cluster.

So in theory, %run and %import_ipynb are supported, but they run in the context of the Spark Executor machine. This means you cannot reference any local files that aren't also available on the same path on the Spark Executor.

I don't know what you're Spark cluster setup is, but this is often more complex than it's worth, so the short answer is no 😄

Hope this helps!

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by devstein
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants