Installed 0.10, having some trouble embedding components():
0.9.3 version
Before I used to load INLINE resources :
res = bkr.Resources('inline') #can be "cdd"
resources = bkt.RESOURCES.render(js_raw = res.js_raw,
css_raw = res.css_raw,
js_files = res.js_files,
css_files = res.css_files,)
0.10 version
However now the above gives me an error, so I caught the occasion to move to cdn, which is in any case lighter.
However I am having the meager result shown below
In head I have:
<link ref="http://cdn.pydata.org/bokeh/release/bokeh-0.10.0.min.css" rel="stylesheet" type="text/css">
<script src="http://cdn.pydata.org/bokeh/release/bokeh-0.10.0.min.js"></script>
{{ bokeh_script|indent(4)|safe }}
In body I have:
{{ bokeh_div|indent(4)|safe }}
CSS are totally screwed (e.g. jqueryui widgets are not working) and these are the results:
Ok I am dumb
there was an “h” missing in href, as per red text below:
Apols for the bother…
···
On Saturday, 3 October 2015 17:04:38 UTC+1, Pythonic wrote:
Installed 0.10, having some trouble embedding components():
0.9.3 version
Before I used to load INLINE resources :
res = bkr.Resources('inline') #can be "cdd"
resources = bkt.RESOURCES.render(js_raw = res.js_raw,
css_raw = res.css_raw,
js_files = res.js_files,
css_files = res.css_files,)
0.10 version
However now the above gives me an error, so I caught the occasion to move to cdn, which is in any case lighter.
However I am having the meager result shown below
In head I have:
<link **h**ref="[http://cdn.pydata.org/bokeh/release/bokeh-0.10.0.min.css](http://www.google.com/url?q=http%3A%2F%2Fcdn.pydata.org%2Fbokeh%2Frelease%2Fbokeh-0.10.0.min.css&sa=D&sntz=1&usg=AFQjCNGSkmPzNDJlKnovalmZ1dIIt6AAgw)" rel="stylesheet" type="text/css">
<script src="[http://cdn.pydata.org/bokeh/release/bokeh-0.10.0.min.js](http://cdn.pydata.org/bokeh/release/bokeh-0.10.0.min.js)"></script>
{{ bokeh_script|indent(4)|safe }}
In body I have:
{{ bokeh_div|indent(4)|safe }}
CSS are totally screwed (e.g. jqueryui widgets are not working) and these are the results:
Sounds like you already figured this out.
But, about the original error, note that 0.10.0 split bokeh.templates.RESOURCES
into bokeh.template.JS_RESOURCES
and bokeh.template.CSS_RESOURCES
. The examples were updated to work with the change:
to = int(getitem(args, 'to', 10))
# Create a polynomial line graph
x = list(range(_from, to + 1))
fig = figure(title="Polynomial")
fig.line(x, [i ** 2 for i in x], color=color, line_width=2)
# Configure resources to include BokehJS inline in the document.
# For more details see:
# http://bokeh.pydata.org/en/latest/docs/reference/resources_embedding.html#bokeh-embed
js_resources = JS_RESOURCES.render(
js_raw=INLINE.js_raw,
js_files=INLINE.js_files
)
css_resources = CSS_RESOURCES.render(
css_raw=INLINE.css_raw,
css_files=INLINE.css_files
)
# For more details see:
cheers,
Dennis
···
On Saturday, October 3, 2015 at 9:16:00 AM UTC-7, Pythonic wrote:
Ok I am dumb
there was an “h” missing in href, as per red text below:
Apols for the bother…
On Saturday, 3 October 2015 17:04:38 UTC+1, Pythonic wrote:
Installed 0.10, having some trouble embedding components():
0.9.3 version
Before I used to load INLINE resources :
res = bkr.Resources('inline') #can be "cdd"
resources = bkt.RESOURCES.render(js_raw = res.js_raw,
css_raw = res.css_raw,
js_files = res.js_files,
css_files = res.css_files,)
0.10 version
However now the above gives me an error, so I caught the occasion to move to cdn, which is in any case lighter.
However I am having the meager result shown below
In head I have:
<link **h**ref="[http://cdn.pydata.org/bokeh/release/bokeh-0.10.0.min.css](http://www.google.com/url?q=http%3A%2F%2Fcdn.pydata.org%2Fbokeh%2Frelease%2Fbokeh-0.10.0.min.css&sa=D&sntz=1&usg=AFQjCNGSkmPzNDJlKnovalmZ1dIIt6AAgw)" rel="stylesheet" type="text/css">
<script src="[http://cdn.pydata.org/bokeh/release/bokeh-0.10.0.min.js](http://cdn.pydata.org/bokeh/release/bokeh-0.10.0.min.js)"></script>
{{ bokeh_script|indent(4)|safe }}
In body I have:
{{ bokeh_div|indent(4)|safe }}
CSS are totally screwed (e.g. jqueryui widgets are not working) and these are the results: