by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 15:28
    Hoxbro synchronize #1400
  • 14:58
    ppwadhwa commented #450
  • 14:56
    ppwadhwa labeled #456
  • 14:55
    ppwadhwa milestoned #456
  • 14:55
    ppwadhwa closed #459
  • 14:55
    ppwadhwa commented #459
  • 14:52
    ppwadhwa closed #460
  • 14:52
    ppwadhwa commented #460
  • 14:49
    ppwadhwa milestoned #462
  • 14:49
    ppwadhwa labeled #462
  • 14:48
    ppwadhwa milestoned #463
  • 14:48
    ppwadhwa labeled #463
  • 14:47
    ppwadhwa milestoned #465
  • 14:47
    ppwadhwa labeled #465
  • 14:46
    ppwadhwa labeled #465
  • 14:44
    philippjfr milestoned #466
  • 14:43
    philippjfr milestoned #323
  • 14:43
    philippjfr demilestoned #323
  • 14:43
    philippjfr milestoned #314
  • 14:43
    philippjfr demilestoned #314
Marc Skov Madsen
@MarcSkovMadsen
Take a look at this if you are interested in an efficient development and testing workflow for Panel in your favorite editor or IDE. https://discourse.holoviz.org/t/awesome-panel-designer/643
panel_designer.gif
Maxime Liquet
@maximlt
Hi all, I've created a dev environment for panel based on its Developer Guide. I'd like to know what's the best way to update panel's dependencies? I've made a few conda update dry runs and what it suggested wasn't so nice, in particular it wanted to install panel (which is already installed in develop mode). I don't know exactly why, maybe because I have holoviews in my environment.
Sam Hoffman
@sam-hoffman
Hi! I found a typo in a Datashader example but I couldn't figure out how to contribute to fix it :) any contributor guidelines that I couldn't find?
Maxime Liquet
@maximlt
Hi @sam-hoffman, most of the content of the pyviz websites (including datashader) are built upon notebooks. If you browse the examples folder at https://github.com/holoviz/datashader, you'll see plenty of them. Find yours, open it and click on the Edit button (a little pencil). The raw content of the notebook should be displayed (don't worry if it's a little ugly) and you should now be able to edit it and submit your edit as a new commit. This is for me the simplest and fastest way to fix a simple type. If you need to run the code of the notebook, that's a completely different story ;)
Sam Hoffman
@sam-hoffman
thanks! I just submitted a PR
Marc Skov Madsen
@MarcSkovMadsen
Great @sam-hoffman
Nauman Ahmad Khan
@khannaum
Marc Skov Madsen
@MarcSkovMadsen
Regarding file watching and automatic reload in the Awesome Panel Designer https://discourse.holoviz.org/t/awesome-panel-designer/643/3. Should I look to watchdog or the built in file watching in Tornado for the --dev server to enable this? I tried experiements with watchdog but could not get it working when running on Tornado. Watchdog starts a seperate thread dont know if that is a problem?
onus tepolov
@blastoporeus_twitter
Is there a current best practices document (I recall there being mention of a forthcoming blogpost) about how to best use holoviews/panel/Voila/Datashader?
Philipp Rudiger
@philippjfr
Not yet, I'm currently working on ironing out the last issues and should be done by the end of the week, then I'll start with the blog post and then we need to release all the associated libraries.
onus tepolov
@blastoporeus_twitter
Thank you Philipp, I will stay tuned to read through that then.
Philipp Rudiger
@philippjfr
If you have time to test things I can ping you when they are ready.
Marc Skov Madsen
@MarcSkovMadsen
Nice about the best practices. I'm experimenting a lot with a model-services-component-view based architecture for the larger things I do. I can't really tell if its good or bad. There is a lot of code to write and its a bit difficult to work with beginners who dont understand the concept. But it really helps to break things down.
onus tepolov
@blastoporeus_twitter
great - I will do my best to properly test.
Nauman Ahmad Khan
@khannaum
@maximlt @philippjfr guys i am eagerly waiting for your input on this issue . I made ne nuts .https://discourse.holoviz.org/t/apply-method-strange-behavior-in-html-file/646
Marc Skov Madsen
@MarcSkovMadsen
There is a question (not from me) on stack overflow regarding Panel authentication. Maybe somebody with knowledge could take a look and provide a better answer than I can. See https://stackoverflow.com/questions/60156510/simple-authentication-using-python-panel-holoviz/61788878#61788878
I'm working on auth right now which is why I stumbled upon the question. I can get auth working with panel serve from command line. But not with python and then .show() or pn.serve() in the python file. Is that correctly understood?
Marc Skov Madsen
@MarcSkovMadsen
Another question regarding auth from a user on stackoverflow. I'm not capable of answering. But take a look if you have the time and knowledge. https://stackoverflow.com/questions/60169875/handling-user-authentication-in-flask-bokeh-panel-setup
Jean-Luc Stevens
@jlstevens
@MarcSkovMadsen Just in case you don't know this already but we are making some progress on getting panel/holoviz to work in the VSCode notebook environment.
Marc Skov Madsen
@MarcSkovMadsen
I'm trying to setup authentication with Azure AD and it works. But how do I get_user inside my Panel application? I can find the "user" cookie. But this is a secure cookie. How would i decrypt that or get access to get_user from within Panel? @philippfr?
Thanks @jlstevens
Marc Skov Madsen
@MarcSkovMadsen
FYI. Holoviz, Streamlit and awesome-anel.org is discussed on this weeks edition of Python Bytes. https://pythonbytes.fm/episodes/show/181/it-s-time-to-interrogate-your-python-code
What happened to font awesome in Panel @philippjfr ? I believe there was a PR. But now i cannot find it anywhere.
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 !