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

pn.panel({}) raises Uncaught (in promise) #3921

Closed
MarcSkovMadsen opened this issue Oct 1, 2022 · 4 comments · Fixed by #3936
Closed

pn.panel({}) raises Uncaught (in promise) #3921

MarcSkovMadsen opened this issue Oct 1, 2022 · 4 comments · Fixed by #3936

Comments

@MarcSkovMadsen
Copy link
Collaborator

MarcSkovMadsen commented Oct 1, 2022

I'm on the current master branch of panel

import panel as pn

pn.panel({}).servable()
Uncaught (in promise) {message: 'Could not determine data format for {}, with JS typeof object'}

image

@philippjfr
Copy link
Member

I don't follow what you're doing here at all.

@philippjfr
Copy link
Member

Okay, I see. Seems the Perspective pane has precedence when you pass in a dictionary.

@MarcSkovMadsen
Copy link
Collaborator Author

MarcSkovMadsen commented Oct 1, 2022

It might not seem like the app a user would make. But {} could be the result of some transformation as in my case. Instead of every Panel user having to add error handling, its better that Panel removes that friction.

@philippjfr
Copy link
Member

Yes, the JSON pane should have precedence here.

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