by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jul 06 19:12
    Hoxbro commented #1461
  • Jul 06 18:46
    douglasmacdonald opened #4510
  • Jul 06 17:27
    gioarma opened #4509
  • Jul 06 17:00
    michaelaye commented #4500
  • Jul 06 16:34
    Hanbing1999 commented #4508
  • Jul 06 16:29

    philippjfr on v0.10.0a8

    (compare)

  • Jul 06 16:28

    philippjfr on add_oauth_providers

    (compare)

  • Jul 06 16:28

    philippjfr on master

    Add ability to declare OAuth pr… (compare)

  • Jul 06 16:28
    philippjfr closed #820
  • Jul 06 16:28
    codecov[bot] commented #820
  • Jul 06 16:28
    codecov[bot] commented #820
  • Jul 06 16:23
    philippjfr edited #820
  • Jul 06 16:22
    philippjfr commented #820
  • Jul 06 16:20
    philippjfr commented #4500
  • Jul 06 16:19
    philippjfr commented #4500
  • Jul 06 16:18
    codecov[bot] commented #820
  • Jul 06 16:18
    philippjfr synchronize #820
  • Jul 06 16:18

    philippjfr on add_oauth_providers

    Update docs (compare)

  • Jul 06 16:16
    codecov[bot] commented #820
  • Jul 06 16:14
    codecov[bot] commented #820
Philipp Rudiger
@philippjfr
The PR is still open. I didn't find a way to bundle the css I liked so haven't picked it up again yet.
sameerCoder
@sameerCoder
Hello Every1,
I have made the bokeh application and its running fine on my local system,
I want to deploy my bokeh application on my own server ?
how i can do the deploy of my bokeh application deployment on my own server
@allkindly provide me some guidelines to make my bokeh application deploy on my own server , so that i can use my bokeh application dynamically.
Thank you.
Marc Skov Madsen
@MarcSkovMadsen
Regarding Bokeh the best place to ask user questions is in the Bokeh forum. See https://discourse.bokeh.org/. But see also https://docs.bokeh.org/en/latest/docs/user_guide/server.html
sameerCoder
@sameerCoder
Thank @MarcSkovMadsen
i will see .
Maxime Liquet
@maximlt
Just listened to the Python Bytes episode you mentioned @MarcSkovMadsen, it seems like we did a good job at advertising Holoviz :D !
sameerCoder
@sameerCoder
Hi All,
Kindly let me know how to solve this embedding plot in flask Error:-
from flask import Flask, render_template
from werkzeug.wrappers import Request,Response

app=Flask(_name_)

@app.route('/plot/')
def plot():
    from shapely.geometry import Point,Polygon
    import pandas as pd
.......
.......
......
......
......
    dd=df_div.opts(width=70, height=70)
    dd1=df_div1.opts(width=600, height=90)



    finalplot=pn.Column(pn.Row(dd, dd1), tiles*rasterize(hmap1).options(**opts)*hmap2*logo1.opts(hooks=[absolute_position], apply_ranges=False)).servable()
    #print("--- %s seconds ---" % (time.time() - strtt))
    #finalplot



    script1, div1 = components(finalplot)
    cdn_js=CDN.js_files[0]
    #cdn_css=CDN.css_files[0]
    return render_template("plot.html",
    script1=script1,
    div1=div1,
    #cdn_css=cdn_css,
    cdn_js=cdn_js )



@app.route('/')
def home():
    return render_template("home.html")

@app.route('/about/')
def about():
    return render_template("about.html")

if _name=="main_":
    from werkzeug.serving import run_simple
    #app.run(debug=True,port=)
    run_simple('localhost',9000,app)

Error which i am getting while running is below:-

I am getting error 
  File "/home/XXXX/anaconda3/envs/plot2/lib/python3.7/site-packages/bokeh/embed/standalone.py", line 190, in components
    models = _check_models_or_docs(models)
  File "/home/XXXX/anaconda3/envs/plot2/lib/python3.7/site-packages/bokeh/embed/standalone.py", line 398, in _check_models_or_docs
    'Input must be a Model, a Document, a Sequence of Models and Document, or a dictionary from string to Model and Document'
ValueError: Input must be a Model, a Document, a Sequence of Models and Document, or a dictionary from string to Model and Document
127.0.0.1 - - [23/May/2020 17:38:05] "GET /plot/ HTTP/1.1" 500 -
sorry for font size , by mistake it became bigger in font size.
Kindly let me know to solve this .
Thank you.
Marc Skov Madsen
@MarcSkovMadsen
@maximlt . I believe a talk python to me podcast on holoviz and panel Will be producer in June.
Maxime Liquet
@maximlt
Wow if that's really happening it's great news! For sure expect more people using panel and the other tools after that.
Marc Skov Madsen
@MarcSkovMadsen
At lot has happened at awesome-panel.org. New template based on Material, Inclusion of PerspectiveViewer, Inclusion of ECharts and more. See https://discourse.holoviz.org/t/awesome-panel-org-change-log/66/21?u=marc
Let me know if you have questions, comments, ideas for improvements or want to try out some of the functionality but just cannot figure out how. Thanks.
echarts.gif
image.png
@maximlt . Regarding Podcast effect. See this increase in requests/ day to awesome-panel.org after being mentioned on the podcast.
Maxime Liquet
@maximlt
Wow! It also seems that it has a longer effect.
sameerCoder
@sameerCoder
Hi,
can anyone tell me
how to embedded bokeh <class 'panel.layout.Column'> plot into flask app .
I am trying to embed then i am getting ValueError
  File "/home/XXXX/anaconda3/envs/plot2/lib/python3.7/site-packages/bokeh/embed/standalone.py", line 190, in components
    models = _check_models_or_docs(models)
  File "/home/XXXX/anaconda3/envs/plot2/lib/python3.7/site-packages/bokeh/embed/standalone.py", line 398, in _check_models_or_docs
    'Input must be a Model, a Document, a Sequence of Models and Document, or a dictionary from string to Model and Document'
ValueError: Input must be a Model, a Document, a Sequence of Models and Document, or a dictionary from string to Model and Document
127.0.0.1 - - [23/May/2020 17:38:05] "GET /plot/ HTTP/1.1" 500 -
Brian Pollack
@pollackscience

Hi all, is there a way to use panel to change one part of clim without using a RangeSlider? for instance, this works:

img = np.random.normal(size=(100,100))
hv_img = hv.Image(img)
slider = pn.widgets.RangeSlider(start=-5, end=5, value=(-1, 1), name='contrast')
hv_img = hv_img.apply.opts(clim=slider.param.value)
pn.Row(slider, hv_img)

but I can't get something like this to work:

img = np.random.normal(size=(100,100))
hv_img = hv.Image(img)
slider = pn.widgets.FloatSlider(start=0, end=5, value=1, name='contrast')
hv_img = hv_img.apply.opts(clim=(-1, slider.param.value))
pn.Row(slider, hv_img)
I get an error: ValueError: clim: tuple element is not numeric: <param.Number object at 0x7f425a624bb0>.
Philipp Rudiger
@philippjfr
This should work, but questions like are definitely better for Discourse so the answer doesn't disappear.
@pn.depends(slider)
def  clim(value):
    return (-1, value)
hv_img.apply.opts(clim=clim)
Brian Pollack
@pollackscience
whoops, didn't see the discourse link, thanks @philippjfr !
sameerCoder
@sameerCoder

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.

sameerCoder
@sameerCoder
how to use
on_change(*callbacks)
so that i can get current document on changing my plot dynamically in embedded flask app
Philipp Rudiger
@philippjfr
from bokeh.io import curdoc
doc = curdoc()
script1,div1=components(finalplot.get_root(doc))
sameerCoder
@sameerCoder

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.

sameerCoder
@sameerCoder

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.

Philipp Rudiger
@philippjfr
@sameerCoder Please post to the Discourse, this channel is not a support forum.
sameerCoder
@sameerCoder
sorry @philippjfr
Philipp Rudiger
@philippjfr
No problem at all. It's just that questions asked here are bound to come up again and it's not scalable for me to answer them over and over again.
Michael Aye
@michaelaye
there seems to be a dead image link in https://holoviews.org/user_guide/Gridded_Datasets.html
for the grid types
Michael Aye
@michaelaye
reason is something with https vs https in the URL
sameerCoder
@sameerCoder
@philippjfr
As suggested i had posted the question in Discourse ,
if u have time please look after it .
Thank you.
https://discourse.bokeh.org/t/bokeh-embedded-plot-not-showing-with-no-error/5591/13
when bokeh is embedded in flask it act as static :(
Michael Aye
@michaelaye
interesting side note: adding the pyviz labextension to a running server makes panel display show, but dynamic update doesn't work until restart and reset of lab server.
Marc Skov Madsen
@MarcSkovMadsen
I'm to give a course using the HoloViz tutorial tomorrow Tuesday and the 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.
image.png
Marc Skov Madsen
@MarcSkovMadsen
After some experimentation i discovered that I could change 1M to 1W.
image.png
Andrew
@IAteAnDrew1_twitter
maybe 1MS works
Michael Aye
@michaelaye
I have reported holoviz/holoviews#4449 and was wondering if there's a workaround where I could force the marker size to grow? It's currently hampering my work not being able to see a bigger marker when annotating images...
Jacob Barhak
@Jacob-Barhak
To the Austin locals, is there a way I can solicit a demo from you for the evening of python coding about GeoViews or HvPlot? We have not shown those libraries in the meetup? James and Jean-Luc helped in the past and gave a demo. I was hoping someone else can give a short demo . The meetups are online these days with small crowds. I have one more spot for the evening of python coding where we expect a short demo that we place on Github. However, if you are about to publish a large release and have a lot to show, I will be happy if someone gives a presentation in July in the Monthly python meetup - it is also online these days and attracts a bit more attention. You can find past demos here You can also find some recent videos here . Hopefully someone can help.
James A. Bednar
@jbednar
Sure, I can demo hvPlot, and mention briefly that it can use GeoViews for handling geo data.
Bas Nijholt
@basnijholt
image.png
Has anyone experienced this before? All the plots are cut off too small...