For questions, use https://discourse.holoviz.org/ instead! This chat is for informal discussions and debugging sessions with developers of the HoloViz.org tools (HoloViews, Datashader, Panel, hvPlot, GeoViews, Param, etc.), but user questions should go to the HoloViz Discourse site so that others won't have to ask them again.
philippjfr on bumped_bokeh_2.3
philippjfr on master
Bumped bokeh to released Bokeh … (compare)
philippjfr on idom
Add idom to example requirements (compare)
philippjfr on bumped_bokeh_2.3
Bumped bokeh to released Bokeh … (compare)
philippjfr on value_input
Add value_input to TextInput wi… (compare)
Hi All,
I will very thankful to you and appreciate your help.
script1, div1 = components(finalplot.get_root())
Here get_root() is use to get the parent document but do i need to use curdoc() to get the current plot in flask as my plot is dynamic with dropdown option .
# not working
script1,div1=components(finalplot.curdoc())
which function i shoud call to get current document , so that when i change bokeh lot in embedded flask app then it should reflect in webpage also.
Thanks for quick reply @philippjfr
but its not working ,
can i do curdoc() by making standalone HTML files
from bokeh.io import curdoc
doc=curdoc()
# finalplot=finalplot.get_root(doc)
#
return Markup(file_html(finalplot.get_root(doc),CDN,"myplot"))
if __name__=='__main__':
app.run(debug=True)
it giving static plot , no zoom function , nothing.
2- by using component method no error is coming same time no plot is showing in webpage ,
i am using
from bokeh.resources import CDN
so there is no mismatch of bokeh cdn version but still no plot showing.
from bokeh.io import curdoc
doc = curdoc()
script, div = components(finalplot.get_root(doc))
cdn_js = CDN.js_files[1]
cdn_css=CDN.css_files
return render_template("plot.html",
script=script,
div=div,
cdn_css=cdn_css,
cdn_js=cdn_js)
#
plot.html
{%extends "layout.html"%}
{%block content%}
<link rel="stylesheet" href={{cdn_css | safe}} type="text/css" />
<script type="text/javascript" src={{cdn_js | safe}}></script>
<div class="about">
<h1>My about page</h1>
<p>This is a test website again</p>
</div>
{{script1 | safe}}
{{div1 | safe}}
{%endblock%}
My about page is showing , no error while plotting but plot is not showing in web page :(
sorry for lengthy .
I will really grateful if u guide me on this .
Thank you.
05_Composing_Plots.ipynb
is raising a ValueError: Index is not contained within new index
. I've reported the issue here holoviz/holoviz#256. If some of you know a fix or workaround so that my course can get past this example it would be much appreciated. Thanks.
pn.Tab
elements. By using dynamic=True
, I can get the panel object to display very quickly (under 2 seconds). Each tab has reasonable responsiveness too. However, construction of the panel object takes more than 30 seconds. That's a cumbersome startup time for each person that visits my panel app. Is it possible to serialize/deserialize the panel object to pickle for faster loading? Or is there an alterative way to pre-construct the object and only render it when someone uses the app?
Hi @jbogaardt . The right place to post usage questions is on Discourse. Then the answer is recorded and shared with the community. Please post it here https://discourse.holoviz.org/.
If possible please post a minimal example or a link to code that can be run. Potentially also include some screenshots or a .gif video. It is sometimes very difficult sitting on the other side and trying to guess what the problem can be and how to solve it.
Thanks.