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

panel.serve only accepts functions, not methods #1449

Closed
nritsche opened this issue Jun 22, 2020 · 0 comments · Fixed by #1450
Closed

panel.serve only accepts functions, not methods #1449

nritsche opened this issue Jun 22, 2020 · 0 comments · Fixed by #1450

Comments

@nritsche
Copy link
Contributor

nritsche commented Jun 22, 2020

panel version info

0.9.6

Description of expected behavior and the observed behavior

server = MyServer()
panel.serve(server.gui_instance)

Should serve a template returned by MyServer.gui_nstance(), but it only produces a > int he browser and no error message.

Replaced by the following, it produces the expected behavior:

server = MyServer()
def instance():
    return server.gui_instance()
panel.serve(instance)
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.

1 participant