FYI I am easing back into things a few days early, so feel free to ping me with any questions as they come up.
On Nov 14, 2018, at 14:40, Mateusz Paprocki <[email protected]> wrote:
Hi,
On Wed, Nov 14, 2018 at 10:30 PM Simon Walker <[email protected]> wrote:
Hi Bryan,
This is great news, I'm really glad to hear you're interested. I'm just
going to say that my time is relatively limited but I'm happy to make a
reasonable start. You've given me some great starting points, I was
hoping for a script such as you suggested! We can discuss further when
you return.
if you're looking for inspiration, then there is bokeh-scala (https://github.com/bokeh/bokeh-scala\), unfortunately very outdated and not maintained currently, but the general idea still holds.
Mateusz
- Simon
On Wednesday, 14 November 2018 20:42:11 UTC, Bryan Van de ven wrote:
Hi Simon,
I am taking an OSS break until Dec 1 but I happened to glance at this message while checking other emails. I am excited enough by this idea that I just wanted to take a moment to acknowledge it immediately, and say that I will be very happy to discuss details and help out starting in Dec. In the mean time, I'd just briefly say:
* Users will likely want to output/embed in a variety of ways, so a layered approach that provides higher level convenience APIs that "do everything" built on top of lower level building blocks is helpful here.
* Along the same lines, for the JSON representation I'd suggest first to mirror the bokeh.models API directly, with Rust objects or functions that represent all the Bokeh models in a 1-1 fashion. [*] Then, implement a higher level idiomatic Rust API on top of that. This is the approach that RBokeh is in the process of implementing. It will insulate the Rust API from BokehJS, and also lower the bar for new contributors by providing a work surface that is accessible to Rust devs who do not want to deal with the BokehJS bits.
* If this progresses (and I hope that it does!) we'd be happy to add the project under the Bokeh GitHub organization, if that's something you are also interested in.
Thanks,
Bryan
[*] Ideally, this could be automated. There is a Python script here that will dump every Bokeh model and all their properties (including types and default values and help strings) in a JSON format here:
https://github.com/bokeh/bokeh/blob/master/scripts/spec.py
On Nov 14, 2018, at 11:18, Simon Walker <[email protected]> wrote:
Hi,
I'm interested in writing a Rust wrapper library for plotting with
Bokeh. My interest also extends to other language bindings beyond Rust,
but it is my _current_ language of choice.
As far as I can tell, the simplest way to start is to do the following:
1. Write some code that can generate the basic HTML template including
the javascript pre/post-amble:
- the `<head>` contents importing Bokeh from CDN;
- the `<div>` placeholder (with GUID id);
- the javascript main function fetching the JSON contents from the
`<div>` tag
2. Write some types that serialize down to the JSON representation
stored in the `<script>` tag and inject into the template.
Then I can work in creating a rust-like API which generates the JSON
representation, ideally conceptually similar to the Python API but more
idomatic to Rust.
Does this seem like a reasonable starting point?
Thanks
--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+un...@continuum.io.
To post to this group, send email to bo...@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/e0773061-4425-44ff-987b-cccc9ea31a9e%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.
--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/68144bf3-0ebf-4d95-847e-640799659440%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.
--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/CANFzp8hJs66uCtD7mPaNTTD%3DdFotD9SjvmWDuXA0XHo8pNs%2BoA%40mail.gmail.com\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.