I understand the error and made a new simple test which provide a javascrip error:
···
from bokeh.io import output_notebook, show
from bokeh.charts import BoxPlot
from bokeh.sampledata.iris import flowers
output_notebook()
works well
p = BoxPlot(flowers, label=‘species’, values=‘petal_width’, tools=‘crosshair’, color=‘#aa4444’,
xlabel=‘’, ylabel=‘petal width, mm’, title=‘Distributions of petal widths’)
show(p)
gives a javascript error
bp = BoxPlot( data=flowers, values=‘sepal_length’)
show( bp)
=> Javascript error adding output!
TypeError: Cannot read property ‘indexOf’ of null
See your browser Javascript console for more details.
And I really don’t know anything about javascript.
So what’s the heck ? Is there a way having only one BoxPlot when working with time series ? Or BoxPlot can’t figure out a singleton ?
Thanks
On Tue, May 16, 2017 at 10:07 PM Raphael Walker web@busino.ch wrote:
Hi Alex,
Try this:
```
a = None
b = a[0]
```
You will get an error like you have. That's a very common error and
without a running example it’s impossible to help.
Have a nice evening.
Raphael
On 2017-05-16 19:13, alEx S wrote:
Hi guys,
The situation is really simple : I want a single boxplot
from a list of integers, and I don’t understand the error
message: TypeError: ‘NoneType’ object is not subscriptable.
data=ColumnDataSource( df)
bp = BoxPlot( data=data, values=‘values’)
show( bp)
with df.info() =>
<class 'pandas.core.frame.DataFrame'>
RangeIndex: 726 entries, 0 to 725
Data columns (total 1 columns):
values 726 non-null int64
dtypes: int64(1)
memory usage: 5.8 KB
Any one got an idea ?
Thanks
alEx
–
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+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
To view this discussion on the web visit [https://groups.google.com/a/continuum.io/d/msgid/bokeh/09fe5d59-7533-425c-a32d-d2f738953bd1%40continuum.io](https://groups.google.com/a/continuum.io/d/msgid/bokeh/09fe5d59-7533-425c-a32d-d2f738953bd1%40continuum.io?utm_medium=email&utm_source=footer).
For more options, visit [https://groups.google.com/a/continuum.io/d/optout](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+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/f5488c51-1ae0-7b3d-85a0-0f821001a869%40busino.ch.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.