Thomas Passin and I have been discussing his vr3 plugin in private. This is 
a great plugin. Our conversation deserves to be public.

Here I am going to discuss what I think I know about vr3 and its 
relationship with the holoviews <http://holoviews.org/>and bokeh 
<https://docs.bokeh.org/en/latest/docs/user_guide.html>packages.  I'll keep 
this as short as possible.

*vr3: the big picture*

vr3 allows you to interleave python code with rst, such that *both* parts 
are shown in the vr3 pane. This is a great feature.  For example, given the 
following in the body pane:

@language python

import holoviews as hv
hv.extension('bokeh')
xs = range(-10,11)
ys = [100-el**2 for el in xs]
curve = hv.Curve((xs, ys))
curve.opts(width=350, height=300)
hv.save(curve, 'curve.html')

@language rest
Here is the resulting interactive graph:

.. raw:: html
   :file: curve.html

You will see something like the attached file in the vr3 pane.

I wonder, though, whether some of the rST code is necessary. Thomas, 
wouldn't it be simpler (for users) for vr3 to support something like:

@language rst
Here is the resulting interactive graph:
@image curve.html

Just a thought...

*Holoview and bokeh*

Holoviews and bokeh are both important projects. It's reasonable to use 
both.

For vr3, using holoviews might be the better starting point, as shown 
above. However, I personally am more more interested in the bokeh client 
server architecture as it relates to Jupyter. I'm not sure how this 
architecture relates to vr3.

*Summary*

Thomas is vr3's author. I'll stay out of his way.

In effect, vr3 makes every Leo node act like a Jupyter notebook cell.

I will be investigating bokeh's client/server architecture, independently 
of vr3.

Thomas, any comments or corrections will be appreciated.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/d473e49b-6a9e-4739-a39e-76ade32aacbc%40googlegroups.com.
Title: With VR3