You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@zeppelin.apache.org by Brandon Barker <br...@cornell.edu> on 2018/02/13 01:42:10 UTC

Including maven dependencies in a notebook specific way

Hi,

I'd like to try zeppelin but require the use of external dependencies. It
seems ideal to do this on a notebook-by-notebook basis for portability, and
also for the current docker setup, since adding dependencies in the
interpreter configuration isn't persisted when the container goes away.

Currently, I have the following in my first cell, which seems to work:

%dep
z.load("org.typelevel:squants_2.11:1.3.0")

When I try to use some things in the second cell, like:

implicit val moneyContext = defaultMoneyContext

they work, However, trying to use the `Money` type does not work. I tested
this in spark-notebook and did not have the same problem.

I'm attaching my notebook in case it helps.

Thanks!


-- 
Brandon E. Barker
http://www.cac.cornell.edu/barker/

Re: Including maven dependencies in a notebook specific way

Posted by Jeff Zhang <zj...@gmail.com>.
I believe this is spark bug

https://issues.apache.org/jira/browse/SPARK-18880


Brandon Barker <br...@cornell.edu>于2018年2月13日周二 上午9:42写道:

> Hi,
>
> I'd like to try zeppelin but require the use of external dependencies. It
> seems ideal to do this on a notebook-by-notebook basis for portability, and
> also for the current docker setup, since adding dependencies in the
> interpreter configuration isn't persisted when the container goes away.
>
> Currently, I have the following in my first cell, which seems to work:
>
> %dep
> z.load("org.typelevel:squants_2.11:1.3.0")
>
> When I try to use some things in the second cell, like:
>
> implicit val moneyContext = defaultMoneyContext
>
> they work, However, trying to use the `Money` type does not work. I tested
> this in spark-notebook and did not have the same problem.
>
> I'm attaching my notebook in case it helps.
>
> Thanks!
>
>
> --
> Brandon E. Barker
> http://www.cac.cornell.edu/barker/
>