Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with loading indicator appearance in Fast template #6752

Closed
TheoMathurin opened this issue Apr 18, 2024 · 0 comments · Fixed by #6761
Closed

Issue with loading indicator appearance in Fast template #6752

TheoMathurin opened this issue Apr 18, 2024 · 0 comments · Fixed by #6761
Labels
type: bug Something isn't correct or isn't working
Milestone

Comments

@TheoMathurin
Copy link
Contributor

TheoMathurin commented Apr 18, 2024

Panel 1.4.1

The loading spinner is not displayed as it is should in Fast template.

There is a mixup between the default (arc) and what's supplied to pn.config.loading_spinner. The spinner itself stays the default arc, with the supplied dots acting as a visibility mask. This issue will be best conveyed by showing the screencast.

Also, the supplied colour is not taken into account.

Taking the example from the docs:

import time
import panel as pn
import holoviews as hv
import numpy as np

pn.extension(loading_spinner='dots', loading_color='#00aa41', template='fast')
hv.extension('bokeh')

button = pn.widgets.Button(name="UPDATE", button_type="primary", sizing_mode='stretch_width')

def random_plot(event):
    if event: time.sleep(5)
    return hv.Points(np.random.rand(100, 2)).opts(
        responsive=True, height=400, size=8, color="green")

pn.Column(
    button,
    pn.param.ParamFunction(pn.bind(random_plot, button), loading_indicator=True)
).servable()

loading_indicator_issue

@TheoMathurin TheoMathurin changed the title Issue with loading indicator style in Fast template Issue with loading indicator appearance in Fast template Apr 18, 2024
@philippjfr philippjfr added this to the v1.4.2 milestone Apr 18, 2024
@philippjfr philippjfr added the type: bug Something isn't correct or isn't working label Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't correct or isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants