# Almond Scala Kernel API: Not Working

**URL:** <https://users.scala-lang.org/t/almond-scala-kernel-api-not-working/6209>\
**Category:** Libraries\
**Created:** [June 15, 2020, 12:27pm UTC](https://users.scala-lang.org/t/almond-scala-kernel-api-not-working/6209 "2020-06-15T12:27:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![acse-fk4517](https://users.scala-lang.org/letter_avatar_proxy/v4/letter/a/b5ac83/32.png) [@acse-fk4517](https://users.scala-lang.org/u/acse-fk4517)\
**Post date:** [June 15, 2020, 12:27pm UTC](https://users.scala-lang.org/t/almond-scala-kernel-api-not-working/6209/1 "2020-06-15T12:27:14Z")

</div>

Hi,

I am writing a library that makes use of the almond scala kernel. I am following this example:

[Example](https://github.com/almond-sh/example-library-jupyter-api/blob/master/src/main/scala/almond/example/Example.scala)

I simplify this example to just the following in my code:

def writeHTMLToJupyter()(implicit kernel: almond.api.JupyterApi): Unit = {  
val data = DisplayData(Map(“text/html” -\> “Some **HTML** ”))  
kernel.publish.display(data)  
}

As can be seen, the function signature passes in an implicit parameter as per the example.

I then compile the code and get the following issue:

`could not find implicit value for parameter kernel: almond.api.JupyterApi`

Why is this happening? I know I can import almond.api.JupyterApi without any issues.

If someone could explain that would be much appreciated!

More examples in the docs here: [https://almond.sh/docs/api-jupyter](https://almond.sh/docs/api-jupyter)

---

<div class="post-metadata">

**Author:** ![jducoeur](https://users.scala-lang.org/user_avatar/users.scala-lang.org/jducoeur/32/462_2.png) [@jducoeur](https://users.scala-lang.org/u/jducoeur)\
**Post date:** [June 15, 2020, 12:59pm UTC](https://users.scala-lang.org/t/almond-scala-kernel-api-not-working/6209/2 "2020-06-15T12:59:40Z")

</div>

Hmm. I don’t know Almond at all, but it might be helpful to see your import statement, and how the imported object is documented. For example, you might be importing just the type, but not the implicit instance, or something like that.

---

<div class="post-metadata">

**Author:** ![acse-fk4517](https://users.scala-lang.org/letter_avatar_proxy/v4/letter/a/b5ac83/32.png) [@acse-fk4517](https://users.scala-lang.org/u/acse-fk4517)\
**Post date:** [June 15, 2020, 1:29pm UTC](https://users.scala-lang.org/t/almond-scala-kernel-api-not-working/6209/3 "2020-06-15T13:29:39Z")

</div>

Thanks @jducoeur, I actually got it fixed based on your hint about import statements. The issue was I was calling this function from another, which did not have the implicit defined!
