I finally got some time to try this out and ran into issues. I ran it via pycharm and found, bokeh.protocol.transform_python_types is provided an input of {int64} 199, and JSON throws an error saying TypeError: 199 is not JSON serializable. There are a number of type checks between that and bokeh.protocol.default and the numpy int64 passes through them all (including np.int) without being transformed. Full log below:
http://pastebin.com/raw.php?i=KR5Yjd3P
I added made the changes here and it allowed it to run: Subtypes, such as numpy int64, are not considered instance of np.int. by rothnic · Pull Request #910 · bokeh/bokeh · GitHub
Now I need to go back to see how to use it, since i can't seem to get it to show any of the plots.
-Nick
On Monday, July 14, 2014 8:12:14 PM UTC-5, Bryan Van de ven wrote:
Hi maxicus,
do you have a released version of Bokeh installed? If you are just trying to use the source checkout you will need to do something like:
python setup.py develop
or
python setup.py install
In general you would also need "--build_js" to build the BokehJS library but nothing major has changed there since the release.
If you still have a released version of Bokeh installed (from pip or conda say) the problem might be that you are running bokeh-server from the source checkout tree. In that case, try (outside the source tree):
bokeh-server --script=/full/path/to/crossfilter.py
Let us know if that helps.
Bryan
On Jul 14, 2014, at 6:50 PM, maxi...@gmail.com wrote:
> Bryan,
>
> thanks for the youtube video from SciPy. Myself too is interested in looking into cross filter and the other app you briefly mentioned in the video. I got bokeh from git via git clonehttps://github.com/ContinuumIO/bokeh
> but after starting ./bokeh-server --script=scripts/crossfilter.py and browsing to http://127.0.0.1:5006/myapp
>
> I get the following errors below. You mentioned last time I need bokehjs? Where do I find data app sample? Thanks in advance!
>
> 2014-07-15 00:46:58,261:ERROR:bokeh.server:Exception on / [GET]
> Traceback (most recent call last):
> File "/Users/roman/anaconda/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
> response = self.full_dispatch_request()
> File "/Users/roman/anaconda/lib/python2.7/site-packages/flask/app.py", line 1478, in full_dispatch_request
> response = self.make_response(rv)
> File "/Users/roman/anaconda/lib/python2.7/site-packages/flask/app.py", line 1566, in make_response
> raise ValueError('View function did not return a response')
> ValueError: View function did not return a response
> 2014-07-15 00:46:58,263:INFO:bokeh.server.start:GET / 500 INTERNAL SERVER ERROR 412 3.6ms
> 2014-07-15 00:46:59,554:INFO:bokeh.server.models.docs:num models: 1
> 2014-07-15 00:46:59,630:INFO:bokeh.server.start:GET /myapp 200 OK 622 86.8ms
> 2014-07-15 00:46:59,644:INFO:bokeh.server.start:GET /bokehjs/static/css/bokeh.css 404 NOT FOUND 342 1.2ms
> 2014-07-15 00:46:59,646:INFO:bokeh.server.start:GET /bokehjs/static/js/bokeh.js 404 NOT FOUND 342 769.1us
>
>
> On Sunday, July 13, 2014 6:33:10 AM UTC+2, Bryan Van de ven wrote:
> If you clone a source checkout from github, then in the top level directory, you can run:
>
> ./bokeh-server --script=scripts/crossfilter.py
>
> we intend for the cross filter to be a nice widget you can use in the notebook but we are still working out some css/html kinks when inside the notebook. For now it is available as that app.
>
> Thanks,
>
> Bryan
>
>
> On Jul 12, 2014, at 7:48 PM, Nick Roth <[email protected]> wrote:
>
> > Thanks! Looks like some interesting work. I ran across this widget-based dashboard project a while back, and prototyped a dashboard with crossfilter.js before that. I have been looking into different ways to integrate the two concepts, like a web-based glue. There are always gotchas when trying to mesh things like this, especially with very specialized web frameworks. However, I am definitely interested in the working towards that concept with a bokeh/python backend compared to meteor/js.
> >
> > My crossfilter.js experience was more difficult than I expected trying to apply it for my own purpose, so was just interested to see how you were approaching it.
> >
> > On Saturday, July 12, 2014 6:58:43 PM UTC-5, Bryan Van de ven wrote:
> > Damian that's the spectrogram, not the cross "filter.
> >
> > Nick, I will post instructions later tonight when I'm not on a phone.
> >
> >
> >
> > On Jul 12, 2014, at 18:41, Damian Avila <[email protected]> wrote:
> >
> >> Hi Nick,
> >>
> >> The example lives here: https://github.com/ContinuumIO/bokeh/tree/master/bokehjs/demo/spectrogram
> >>
> >> Cheers.
> >>
> >> Damián
> >>
> >>
> >> On Sat, Jul 12, 2014 at 8:06 PM, Nick Roth <[email protected]> wrote:
> >> I saw the quick demo of the crossfilter work on the scipy video. Is that example available? I didn't see it jump out at me in the examples folder and it seemed like it was mentioned it was rough. I'd be interested in playing around with it either way. Otherwise I'll just reference the package for now.
> >>
> >> Thanks,
> >> Nick
> >>
> >> --
> >> 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/2f35759d-f124-46e0-95e8-9ad8f235bc0e%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 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/CAM9Ly3EACnx8HH06tzgdDy8dDxJwTH7kBh4s5kUVfx%2BaAhp1QA%40mail.gmail.com\.
> >> 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 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/376779dd-ffdf-4170-8113-7be713a5df2e%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 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/cb7d6eb9-4e92-4c55-98c0-83f230469fd7%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/d48ecf35-488e-458e-829f-6247e8f7fbfa%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.