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

Notifications do not work without a template #3820

Closed
TheoMathurin opened this issue Sep 9, 2022 · 0 comments · Fixed by #3886
Closed

Notifications do not work without a template #3820

TheoMathurin opened this issue Sep 9, 2022 · 0 comments · Fixed by #3886

Comments

@TheoMathurin
Copy link
Contributor

TheoMathurin commented Sep 9, 2022

Panel 0.13.1

As mentioned in #3819, notifications do not seem to work without a template. They do not work in a notebook either.

I've not seen anything that says this is expected behavior (they do not work in the dedicated docs notebook), so I report it as a bug.

import panel as pn
pn.extension(notifications=True)


def callback(event):
    pn.state.notifications.error('Error')


button = pn.widgets.Button(name='Display error')
button.on_click(callback)

without_template = True
if without_template:
    button.servable() # does not work
else:
    pn.template.FastListTemplate(main=[], sidebar=[button]).servable() # works fine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants