Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 03:43
    codecov[bot] commented #857
  • 03:42
    codecov[bot] commented #857
  • 03:40
    codecov[bot] commented #857
  • 03:40
    codecov[bot] commented #857
  • 03:12
    philippjfr synchronize #857
  • 03:12

    philippjfr on unlocked_events

    Unlock Document and dispatch ev… (compare)

  • 03:04
    philippjfr synchronize #857
  • 03:04

    philippjfr on unlocked_events

    Unlock Document and dispatch ev… (compare)

  • 03:03
    philippjfr commented #778
  • 03:02
    philippjfr opened #857
  • 03:02
    philippjfr labeled #857
  • 03:00

    philippjfr on unlocked_events

    Unlock Document and dispatch ev… (compare)

  • 02:44
    philippjfr commented #778
  • 00:53
    jbednar commented #793
  • 00:47

    holoviz-developers on gh-pages

    Deploy datashader.org to github… (compare)

  • 00:23
    jbednar closed #833
  • 00:23
    jbednar commented #833
  • 00:17

    jbednar on v0.9.0

    (compare)

  • Dec 07 16:45
    philippjfr commented #831
  • Dec 07 16:30
    philippjfr commented #854
sameerCoder
@sameerCoder
noamination.png
gif file not created .
few warning getting .
finalplot=pn.Column(pn.Row(dd, dd1, dd2), tiles*rasterize(hmap1).options(**opts)*logo1.opts(hooks=[absolute_position], apply_ranges=False)).servable()

#finalplot
finalplot2=hv.output(finalplot, holomap='gif', fps=3, backend='bokeh')
finalplot2

WARNING:param.GeoRasterPlot08463: Supply either hooks or finalize_hooks not both, using hooks and ignoring finalize_hooks.
WARNING:param.RGBPlot08482: Supply either hooks or finalize_hooks not both, using hooks and ignoring finalize_hooks.
WARNING:param.GeoRasterPlot08463: Supply either hooks or finalize_hooks not both, using hooks and ignoring finalize_hooks.
WARNING:param.RGBPlot08482: Supply either hooks or finalize_hooks not both, using hooks and ignoring finalize_hooks.
Paul Gierz
@pgierz
Anyone have any ideas how I could reproduce this? https://stackoverflow.com/questions/20144529/shifted-colorbar-matplotlib
Id like to use hvplot and the bokeh backend
James A. Bednar
@jbednar
@sameerCoder , hv.output() is for HoloViews objects, and you're feeding it a Panel object. You can feed it the rasterize(hmap1) object here; the rest won't work.
James A. Bednar
@jbednar
@pgierz, bokeh/bokeh#9303 (not released) added the ability to generate asymmetric color bars to Bokeh; not sure if that's what you need, or if you just need to set the clim for the plot to a fixed value.
sameerCoder
@sameerCoder

If i am writing my code as below then i am getting Error
where type(finalplot)-- holoviews.core.spaces.DynamicMap


finalplot=tiles*rasterize(hmap1).options(**opts)
finalplot2=hv.output(finalplot,holomap='gif',fps=3,backend='bokeh')
finalplot2

Error: Format 'gif' does not appear to be supported.
For help with hv.util.output call help(hv.util.output)

James A. Bednar
@jbednar
Maybe rasterize(hmap1, dynamic=False).
sameerCoder
@sameerCoder
but i need dynamic to be True as i want zoom option to work

Even when i do dynamic=False same Error :

finalplot=tiles*rasterize(hmap1,dynamic=False).options(**opts)
#finalplot
finalplot2=hv.output(finalplot,holomap='gif',fps=3,backend='bokeh')
finalplot2

Error: Format 'gif' does not appear to be supported.
For help with hv.util.output call help(hv.util.output)

Steve Alexander
@SteveAlexander
I want to move the y axis major labels. I’m successfully moving them left-to-right using figure.yaxis.major_label_standoff. However, major_label_text_baseline doesn’t seem to do anything. I would expect it to move the tick labels up and down relative to the tick line
image.png
my goal is to move these up a bit
Jacob
@goraj
Hi, could someone explain me to scale embedded images in hovertools?
I would like to get some window properties so I could scale it in javascript.
Jacob
@goraj
https://ibb.co/NCw3nPt Ive included a screenshot that shows that the html embedded images wont scale to the window.
James A. Bednar
@jbednar
@sameerCoder , gif output won't have any dynamic zooming; it's just a flipbook of images. But you can choose whatever height=..., width=... arguments you like so that there's something in the image to zoom into. Here, I'm not sure you're actually getting the Panel master version; try import panel as pn ; pn.__version__ to see if you have the right Panel version that does support gif output for Bokeh.
Hayley Song
@cocoaaa
Hi, is 'axiswise' the right parameter to set normalization to be done separately for each plot? With hv.Image, it doesn't seem to work:
data1 = np.random.rand(10,10)
data2 = data1*100
(hv.Image(data1) + hv.Image(data2)).opts(axiswise=True)
image.png
Philipp Rudiger
@philippjfr
@cocoaaa axiswise applies to the elements, not the layout.
sameerCoder
@sameerCoder
@jbednar
pn.__version__ '0.7.0a14.post21+gb55b21c'
since it showing '0.7.0a14.post21+gb55b21c' so i think it is a Panel master version ,
plzz correct me if i am wrong , i have installed correct panel master version ?
Hayley Song
@cocoaaa

@philippjfr I see, thank you! I also learned that hv.Image doesn't have axiswise/framewise option parameters.

%%opts Image [normalize=False]
hv.Image(data1) + hv.Image(data2)

gave me what I needed.

James A. Bednar
@jbednar
@sameerCoder , sorry, I meant to say to check the HoloViews version; it's HoloViews that added Bokeh gif output, not Panel.
@cocoaaa , we don't recommend using the magics any more, so this would be hv.Image(data1).opts(axiswise=True) + hv.Image(data2).opts(axiswise=True). I don't know what the normalize option is, but I don't think it would be having any effect here.
sameerCoder
@sameerCoder
@jbednar
print(hv.version)
'1.12.1'
Eric Ma
@ericmjl
hi guys, got a question which I'm happy to replicate on StackOverflow later: when declaring a param, e.g. param.ListSelector, how do I control its visual properties, e.g. its height or width, in its panel UI?
James A. Bednar
@jbednar
@sameerCoder , that won't have any unreleased changes; you need the git master version of holoviews. If I previously told you to install the git version of panel, I apologize; I meant holoviews! So just replace the command you used to say holoviews wherever it says panel, and try again...
Eric Ma
@ericmjl
Sorry, had to afk for a moment.
For example, if I have a declared param as follows:
James A. Bednar
@jbednar
@ericmjl , you normally control those properties only as a group, when instantiating the Param panel.
You can also use the widgets argument of the panel to substitute any specialized widget you want for specific cases, but again, at instantiation time.
Param doesn't know Panel exists and so can't specifically control the Panel representation; Param is a generic declaration of parameters.
Eric Ma
@ericmjl
ahhh okay.
sameerCoder
@sameerCoder

@jbednar
After installing master version of holoviews
i am getting module to install selenium , so i have installed selenium ,
now it is asking for
``
RuntimeError: PhantomJS is not present in PATH or BOKEH_PHANTOMJS_PATH. Try "conda install phantomjs" or "npm install -g phantomjs-prebuilt"

:HoloMap [Date and Time :,region]
:Overlay
.WMTS.I :WMTS [Longitude,Latitude]
.Image.I :Image [Longitude,Latitude] (MeanWavePeriod)
``

tiles = gv.tile_sources.Wikipedia
hmap1 = hv.HoloMap(allplot, kdims=['Date and Time :','region'])
#hmap2 = hv.HoloMap(allplot2, kdims=['Date and Time :','region'])


dd=df_div.opts(width=70, height=70)
dd1=df_div1.opts(width=600, height=90)
dd2=df_div2.opts(width=100,height=10)

finalplot2=hv.output(tiles*rasterize(hmap1,dynamic=False).options(**opts),holomap='gif',fps=3,backend='bokeh')
finalplot2

I made my code rasterize dynamic=False,removed panle object .
should i installed phantomjs , as per i know it is headless browser ?

Jacob
@goraj
Hi, could someone tell me if HoverTool is escaping html code somehow? Ive included a small example that should show a SVG when hovered: https://gist.github.com/goraj/ac67d5aed340a07d3d7c30bc5179c7de it is not rendering in Firefox unfortunately. Anyone knows why?
This works fine when embedding remote images however.
Jacob Barhak
@Jacob-Barhak
Here are two links for posters generated with PyViz CDISC NIH . They are very similar. I am sending them here so you can look at the acknowledgments at the end and also see how I am using PyViz. I must add that PyViz is much more stable than a few months ago. The new nice features in those posters are: 1. All that is needed is in one file - no need to link to resources -so the final result is reporudcible. 2) Holoviews objects were embedded into panel much easier than in the past, in fact I actually saved a holoviews object generated by another tool and loaded it into this poster. I am about to present the second poster in two days at the NIH. So far those interactive posters gained some attention - hopefully it will catch.
20191017_131116.jpg
Jean-Luc Stevens
@jlstevens
Nicely done! :-)
Eric Ma
@ericmjl

@jbednar I'm sorry, but I'm a bit confused - what does "instantiating the Param panel" means? If, for example, I have:

class MyParam(param.Parameterized):
    selector = param.ListSelector(...)

Now, to instantiate the param object, I would do:

mp = MyParam()

To make the panel, I would do something like:

pn.Column(mp.param.selector, ...)

How how would I control the properties of the ListSelector widget at the instantiation time here? I couldn't see an obvious way to do this on the docs.

Eric Ma
@ericmjl
Ahh!
I'm an ignorasmus.
pn.Param(CustomExample.param, widgets={
    'select_string': pn.widgets.RadioButtonGroup,
    'select_number': pn.widgets.DiscretePlayer}
)
There we go :D
Thanks . for the pointer, @jbednar :D :D
hoseppan
@hoseppan
Is it possible to disable default hover values in hvplot? In below example, I would only like to show 'value' and 'variable' in hover columns, but it shows 'time', 'value' two times and 'variable'
import pandas as pd
import hvplot.pandas
df = pd.DataFrame({'time':[1,2,3,4,5], 'value':[5,1,2,4,3]})
df['variable'] = 'var'
df.hvplot.line(x='time', y='value', hover_cols = ['value', 'variable'])
James A. Bednar
@jbednar
@ericmjl , sometimes I'm only on a phone and can't look up the actual syntax or a better pointer; glad you figured it out from my obscure reference! Yes, that's what I meant.
@hoseppan , pyviz/hvplot#180
@sameerCoder , yes, the message is telling you you need to install PhantomJS, which is how Bokeh renders gifs (in a separate "phantom" offscreen web browser).