import holoviews as hv
hv.extension('matplotlib')[snip]
SummaryUsing pip to install matplotlib, bokeh and holoviews works on a Python 3.7 conda environment.Still to do: allow holoviews to use matplotlib.I still don't understand how to use conda to create Python 3.6 or 3.8 environments, but I don't care much at present :-)
This all makes me glad I've never worked with Anaconda.
Note that when I try to use Holoviews with Bokeh, I get this error:RuntimeError: Neither firefox and geckodriver nor a variant of chromium browser and chromedriver are available on system PATH. You can install the former with 'conda install -c conda-forge firefox geckodriver'.HV uses a headless browser to render the Bokeh output and (by taking a screenshot) render it to an image. pip couldn't find these drivers. I thought they were on Anaconda, but I don't use Anaconda. It's ironic because hv actually wants to use the same QT chrome widget we have on Leo, but it needs to import its own packaging. This is why I used matplotlib for rendering, and didn't output a live interactive graph, with holoviews. I thought that the geckodriver package was available via Anaconda. But using it would leave out all those Leo users that don't run Anaconda.
WindowsPython: 3.8.0Holoviews: 1.13.0Bokeh: 2.0.0Matplotlib: 3.1.2also, in a virtual env:Holoviews: 1.13.1Bokeh: 2.0.0MatPlotLib: 3.2.1 (not a typo, it really is a different version)LinuxPython 3.6.9Holoviews: 1.13.1Bokeh: 2.0.0Matplotlib: 3.1.13Everything was installed using pip.Note that when I try to use Holoviews with Bokeh, I get this error:RuntimeError: Neither firefox and geckodriver nor a variant of chromium browser and chromedriver are available on system PATH. You can install the former with 'conda install -c conda-forge firefox geckodriver'.
I discovered how to use Bokeh in Holoviews without needing that geckodriver. If you write the actual interactive output - instead of a png file - you don't even need a renderer.
RuntimeError: Neither firefox and geckodriver nor a variant of chromium browser and chromedriver are available on system PATH. You can install the former with 'conda install -c conda-forge firefox geckodriver'.I got the same error. I also installed selenium.
Here is a Leo outline containing1 - Holoview examples using Bokeh, with and without using VR3;2 - Holoviews examples using matplotlib with and without using VR3;3 - Bokeh examples with and without using VR3.All of these work on my Windows machine as of tonight. I cleaned them up, corrected for what seem to have been updates to Bokeh (or maybe my misunderstanding), so they are, I think, minimal examples that illustrate how to write the code. Edward, would you try them out and see what happens with your setup?
How do you want to work it?
Selenium would only be needed for generating a bitmap image. So I'd say to stick with my revised code and just use the interactive HTML graphs.
I discovered how to use Bokeh in Holoviews without needing that geckodriver. If you write the actual interactive output - instead of a png file - you don't even need a renderer. You can just embed the interactive html output directly.
On Fri, Mar 27, 2020 at 9:06 PM Thomas Passin <tbp1...@gmail.com> wrote:How do you want to work it?I'll send a zoom invite to tbp1...@gmail.com. You check that regularly, right?
As I said in another reply, I'd like to do some homework before setting this up. It might be a day or so.
That is strange. Oh, I forgot to write that I ran the non-VR3 examples using CTRL-B. I imagine that's how you tried them, too.
I think I see the answer. When you change something in a Leo node, you do not induce Python to re-compile any .pyc files in the various pycaches.
If Leo had already loaded matplotlib earlier, then it would reuse that compiled code when you did another matplotlib import from within Leo (e.g., when trying out those examples).