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

Make Panel Chat Interface callback not require user and instance args #6799

Open
ahuang11 opened this issue Apr 29, 2024 · 0 comments
Open
Labels
type: enhancement Minor feature or improvement to an existing feature

Comments

@ahuang11
Copy link
Contributor

I find myself typing it excessively, but not using it:

def callback(contents, user, instance):
    return contents

I'd like to make the latter optional by perhaps inspecting the signature to see if it contains it.

def callback(contents):
    return contents

That way, it also conforms a bit more to pn.bind(callback, contents=input.param.value).

@ahuang11 ahuang11 added the TRIAGE Default label for untriaged issues label Apr 29, 2024
@ahuang11 ahuang11 changed the title Make Panel Chat Interface callback not require user and instance. Make Panel Chat Interface callback not require user and instance args Apr 29, 2024
@ahuang11 ahuang11 added type: enhancement Minor feature or improvement to an existing feature and removed TRIAGE Default label for untriaged issues labels May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Minor feature or improvement to an existing feature
Projects
None yet
Development

No branches or pull requests

1 participant