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

Decode bytes in bokeh plots #2357

Merged
merged 1 commit into from
Feb 22, 2018
Merged

Decode bytes in bokeh plots #2357

merged 1 commit into from
Feb 22, 2018

Conversation

philippjfr
Copy link
Member

@philippjfr philippjfr commented Feb 20, 2018

Attempt to decode bytes types passed to bokeh plots. As part of the Intake project I'm building a HoloViews based plotting API, many of the data sources in this project includes bytes types even in Python3 which currently cannot be serialized by bokeh causing errors. In this API its not really practical to convert the bytes types to strings, so it would be helpful if we could just assume utf-8 encoding (which will be most common). This will of course not always work but based on my testing it works in most cases, which is better than the current case where it works in no cases.

@philippjfr
Copy link
Member Author

Ready to review/merge.

@jlstevens
Copy link
Contributor

jlstevens commented Feb 22, 2018

Looks good though I think this issue needs more thorough investigation before we can be confident that we have the most general/robust fix. If you file an issue as a reminder to do that, I'm happy to merge this as a fix (even if it only a partial fix, it will handle more inputs that always erroring, as you say).

@jlstevens
Copy link
Contributor

Thanks for filing the issue. Merging.

@jlstevens jlstevens merged commit 5313b75 into master Feb 22, 2018
philippjfr added a commit that referenced this pull request Mar 1, 2018
@philippjfr philippjfr deleted the bokeh_bytes branch March 9, 2018 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants