0

When using the scala kernel with Vegas we see the nice charts

enter image description here

But when switching to the scala-spark kernel the imports no longer work:

enter image description here

What is the way to fix the imports for the spark kernel?

WestCoastProjects
  • 58,982
  • 91
  • 316
  • 560

1 Answers1

1

As described here you'll probably need to tweak your notebook config to pre-load those libraries, so they are available at runtime.

Then you can do a normal import (without the funny $ivy syntax, which actually comes from Ammonite REPL).

Luciano
  • 2,388
  • 1
  • 22
  • 33
  • Actually what you pointed to was `addJar` - which btw I had found already to be working. Where did you see "tweak notebook config" in that reference? – WestCoastProjects Mar 27 '18 at 07:21
  • @javadba In theory you could add a jupyter kernel config, as described in the [docs](https://jupyter-client.readthedocs.io/en/latest/kernels.html#kernel-specs), so that yo don't have to type that in everytime you run the notebook. – Luciano Apr 03 '18 at 11:21