One note… I’m not totally sure if this was meant only as a “shell program” to insert one’s own data renderer, but when I run the given gist I get:
ERROR:/Users/Matt1/anaconda/lib/python3.5/site-packages/bokeh/core/validation/check.py:W-1001 (NO_DATA_RENDERERS): Plot has no data renderers: Plot, ViewModel:Plot, ref _id: e10785f1-348a-42d5-8bac-277e776427c3
Here’s what version of Python and Bokeh I’m running with:
Python 3.5.1 |Anaconda 2.4.0 (x86_64)| (default, Dec 7 2015, 11:24:55)
[GCC 4.2.1 (Apple Inc. build 5577)] on darwin
Type “help”, “copyright”, “credits” or “license” for more information.
On Wednesday, June 8, 2016 at 1:13:05 PM UTC-4, [email protected] wrote:
Here’s an example of a draggable bar as a custom tool model:
It doesn’t do exactly what you want, because it doesn’t include the hit testing necessary for selecting individual glyphs. But it should be a reasonable starting point.
On Wednesday, June 8, 2016 at 9:39:32 AM UTC-5, Bryan Van de ven wrote:
For now, the way forward on this is through custom models. We have not had occasion to mention or push the BokehJS API much until now, so this is an area where documentation is lagging. Adding a section to the user guide is high on my priority list. In the mean time, one of my colleagues just made a proof of concept of a custom drag tool model that could drag a span annotation. I will ping them to post some example code here.
In general, there’s an infinite number things that users might want, that are perfectly useful and reasonable things to want, but that we can’t get to in a timely manner because of resource constraints, or that we wouldn’t want to add to the core library (because we don’t want the library to balloon out of all proportion and because “yes is forever” in terms of maintenance). My vision with the extension protocol is that is eventually lead to a community collection of easily installable user-created functionality, ala Atom or Chrome extensions so that the community doesn’t have to “wait on us” to get what they need.
On Jun 7, 2016, at 10:28 PM, Matt [email protected] wrote:
Has there been any progress on this?
It would be super useful to be able to easily drag points and shapes around a Bokeh chart… which also implies being able to “select” the drawing object to drag… perhaps showing “handles” or some other selected state / indicator.
On Monday, May 18, 2015 at 10:36:44 AM UTC-4, Pythonic wrote:
The question in short
I would like to click-and-drag single glyphs in a server-hosted scatter, and make sure that the (x,y) coordinates of the glyph are updated on server side.
(for full clarity this is not a use of the “Pan” tool. This mpld3 example shows the click-and-drag behaviour I refer to, and the image below comes from this SO question)
Context of the question
As Bokeh introduced a few interesting widgets (Tables, Sliders,…) I am seeking to move a professional application from a desktop environment based on Matplotib+PyQt, to a Heroku + Flask + Bokeh-server solution. To do this, I need to be able to click-and-drag elements of a chart like in the mpld3 example linked above, or in this matplotlib example). This is a “bokeh for webapp” question (and to be clear, being able to have basic pyqt-like widgets on the web without having to deal directly with stuff like extjs is absolutely amazing).
This issue has been touched on already here in this group, but I need some help wrapping these elements together.
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/0ea0c569-ba98-46c2-9ff6-56e26561a3f1%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.