{% include JB/setup %}
You can access Spark through a SparkContext
which is created by Apache Toree when the kernel starts. You can access the context through the sc
variable.
Jars are added through the AddJar
magic. You simply need to supply an URL for the jar to be added.
%AddJar http://myproject.com/myproject/my.jar
For more information about the AddJar
magic see the Magic Tutorial Notebook.
Dependencies stored in repositories can be added through the AddDeps
magic. An example usage would be:
%AddDeps my.company artifact-id version
If the dependency you are trying to add has transitive dependencies, you can add the --transitive
flag to add those dependencies as well. For more information about the AddDeps
magic see the Magic Tutorial Notebook.
The most straightforward way to add data visualization with Apache Toree is through the Jupyter Declarative Widgets project.
Notebooks can be changed into dashboards through the Jupyter Dashboards project. This project allows you to use Jupyter Declarative Widgets in your dashboards.