scalajupyter-notebookvegavega-litevegas-viz

How to use the Vegas visualization within a scala-spark jupyter notebook


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?


Solution

  • 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).