-
Notifications
You must be signed in to change notification settings - Fork 38
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
Self-defined Classes in one cell cannot be invoked in another cell #35
Comments
I have a PR pending with a fix for certain uses of case classes in Spark executor run functions. I'm not sure if this covers the problem you're seeing. Can you provide an example of the code and a stack trace? Or did you mean to close this issue as you found a fix? |
@parente |
|
Above is all the coding I put into one cell and it worked well with the outputs: defined trait List |
However when I put exactly the same last part of the code in the next cell, it cannot work |
|
Updated the code. Please have a look if possible |
did you redefine |
@mariusvniekerk Thanks! That should be the problem. |
@mariusvniekerk I tried to run the code in the original Scala REPL but I need not redefine the class every time. Whenever I run the last part of code it can work smoothly. I had expected the same thing in Jupyter Notebook but it seemed to be hard |
I am trying to run some code with self defined classes in Scala. But when I try to use them in another cell, it said reference to List is ambiguous.
The text was updated successfully, but these errors were encountered: