Right,we have hooks for each paragraph execution, but no interpreter process level hook. Could you create a ticket for that ? And welcome to contribute.
Vladimir Prus <vladimir.p...@gmail.com> 于2021年5月21日周五 下午4:16写道: > > Hi, > > is there a way, when using Spark interpreter, to always run additional > Scala code after startup? E.g. I want to automatically execute > > import com.joom.whatever._ > > so that users don't have to do it all the time. I see that > BaseSparkScalaInterpreter.spark2CreateContext imports a few thing, but the > code does not appear to support customizing this sequence. > > -- > Vladimir Prus > http://vladimirprus.com > -- Best Regards Jeff Zhang