Restarting interpreter in note page will only restart that note's owner's
interpreter, won't affect other users' interpreter.
Dima Kamalov 于2019年7月27日周六 上午9:51写道:
> Hi,
>
> I'm wondering whether there are any best practices around restarting a
> user's interpreter group. (E.g. the whole set of
This does not fix the problem when a Spark session crashes. If a user has
multiple notes in scoped mode, restarting one note will not restart the
interpreter group -- it will only restart the session. This will restart
the Scala REPL but not e.g. the Spark session.
On Sun, Jul 28, 2019 at 6:16
Hmm, that's right. Does only user isolated work for you ?
Dima Kamalov 于2019年7月29日周一 下午12:03写道:
> This does not fix the problem when a Spark session crashes. If a user
> has multiple notes in scoped mode, restarting one note will not restart the
> interpreter group -- it will only restart the
Yes, user isolated only works for Spark. The problem with running only
user isolated is that then we get conflicts in the Scala REPL -- e.g. the
same variable name cannot be used in multiple notebooks.
On Sun, Jul 28, 2019 at 9:10 PM Jeff Zhang wrote:
> Hmm, that's right. Does only user isolate
You can use var instead of val, so that you can the same variable in a
different paragraph. And as long as you don't run paragraphs cross
paragraphs, it should be fine.
Dima Kamalov 于2019年7月29日周一 下午1:16写道:
> Yes, user isolated only works for Spark. The problem with running only
> user isolated
Using var in multiple notebooks is dangerous -- users will run into
inadvertent bugs because the same variable value got changed in a different
notebook. So that will not work for us. Thank you for the suggestion
though -- let me know if you or others have any other ones.
On Sun, Jul 28, 2019 at