Hi Damián,
I updated my version of Bokeh using “conda install -c http://conda.binstar.org/bokeh/channel/dev bokeh” and it worked fine. I was able to get the sin curve widget example to work properly, but when I run the male female location by year example, the blue and purple graph, it returns the error: “5 is not JSON serializable”. I pasted the full IPython console error message below.
Thanks again for your help with this!
Armen
In [1]: runfile(‘H:/Work Files/Python Programming/Scripts/Widgets_Test.py’, wdir=‘H:/Work Files/Python Programming/Scripts’)
Using saved session configuration for http://localhost:5006/
To override, pass ‘load_from_config=False’ to Session
Traceback (most recent call last):
File “”, line 1, in
runfile('H:/Work Files/Python Programming/Scripts/Widgets_Test.py', wdir='H:/Work Files/Python Programming/Scripts')
File “C:\Users\aalexanian\AppData\Local\Continuum\Anaconda3\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py”, line 585, in runfile
execfile(filename, namespace)
File “C:\Users\aalexanian\AppData\Local\Continuum\Anaconda3\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py”, line 48, in execfile
exec(compile(open(filename, 'rb').read(), filename, 'exec'), namespace)
File “H:/Work Files/Python Programming/Scripts/Widgets_Test.py”, line 147, in
update_data()
File “H:/Work Files/Python Programming/Scripts/Widgets_Test.py”, line 122, in update_data
session.store_document(document)
File “C:\Users\aalexanian\AppData\Local\Continuum\Anaconda3\lib\site-packages\bokeh\session.py”, line 404, in store_document
self.push(*json_objs)
File “C:\Users\aalexanian\AppData\Local\Continuum\Anaconda3\lib\site-packages\bokeh\session.py”, line 358, in push
data = protocol.serialize_json(jsonobjs)
File “C:\Users\aalexanian\AppData\Local\Continuum\Anaconda3\lib\site-packages\bokeh\protocol.py”, line 103, in serialize_json
return json.dumps(obj, cls=encoder, **kwargs)
File “C:\Users\aalexanian\AppData\Local\Continuum\Anaconda3\lib\json_init_.py”, line 237, in dumps
**kw).encode(obj)
File “C:\Users\aalexanian\AppData\Local\Continuum\Anaconda3\lib\json\encoder.py”, line 192, in encode
chunks = self.iterencode(o, _one_shot=True)
File “C:\Users\aalexanian\AppData\Local\Continuum\Anaconda3\lib\json\encoder.py”, line 250, in iterencode
return _iterencode(o, 0)
File “C:\Users\aalexanian\AppData\Local\Continuum\Anaconda3\lib\site-packages\bokeh\protocol.py”, line 100, in default
return self.transform_python_types(obj)
File “C:\Users\aalexanian\AppData\Local\Continuum\Anaconda3\lib\site-packages\bokeh\protocol.py”, line 81, in transform_python_types
return super(BokehJSONEncoder, self).default(obj)
File “C:\Users\aalexanian\AppData\Local\Continuum\Anaconda3\lib\json\encoder.py”, line 173, in default
raise TypeError(repr(o) + " is not JSON serializable")
TypeError: 5 is not JSON serializable
···
On Fri, Aug 1, 2014 at 3:58 PM, Damian Avila [email protected] wrote:
All,
We have a new late Friday dev release today. It contains all the bug fixes merged during the last week.
As you probably know, these builds are being made available on binstar.org. If you are using Anaconda, you can install with conda by issuing:
conda install -c [http://conda.binstar.org/bokeh/channel/dev](http://conda.binstar.org/bokeh/channel/dev) bokeh
Alternatively you can install with pip:
pip install --pre -i [https://pypi.binstar.org/bokeh/channel/dev/simple](https://pypi.binstar.org/bokeh/channel/dev/simple) bokeh --extra-index-url [https://pypi.python.org/simple/](https://pypi.python.org/simple/)
Thanks to everyone and enjoy it!
Damián.
–
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/CAM9Ly3GdRP3a2xT9oWkitSWqxGEvVC6nLXzsTK-SnxK2oxLkYQ%40mail.gmail.com.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.