13. FAQs#

13.1. I have issues with the dependencies for the viz module.#

The viz module uses bokeh and panel to create interactive plots. These packages are not installed by default when you install julearn. This libraries are also under development and they might not be as robust as we want.

Usually, installing julearn with the [viz] option will install the necessary dependencies using pip. However, if you have issues with the installation or you want to install them through other package managers, you can install them manually.

Using pip:

pip install panel
pip install bokeh

Using conda:

conda install -c conda-forge panel
conda install -c bokeh bokeh

13.2. How do I use the viz interactive plots?#

The interactive plots are based on bokeh and panel. You can use them in different ways:

  1. As a standalone application, in a browser:

    To do so, you need to call the function show on the plot object. For example:

    panel = plot_scores(scores1, scores2, scores3)
    panel.show()
    
  2. As part of a Jupyter notebook:

    You will need to install the jupyter_bokeh package.

    Using pip:

    pip install jupyter_bokeh
    

    Using conda:

    conda install -c bokeh jupyter_bokeh
    

    This will allow you to see the plots interactively in the notebook. To do so, you need to call the function servable on the plot object. For example:

    panel = plot_scores(scores1, scores2, scores3)
    panel.servable()