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

Backport PR #10558 on branch 5.x #10562

Merged
merged 1 commit into from
May 13, 2017
Merged

Backport PR #10558 on branch 5.x #10562

merged 1 commit into from
May 13, 2017

Conversation

lumberbot-app[bot]
Copy link
Contributor

@lumberbot-app lumberbot-app bot commented May 13, 2017

Backport PR #10558: Let nbformat take care of opening the file

Notebook files should always be read as utf-8, but the default for io.open() is to use a platform-dependent default encoding. The easiest way around this is to pass the filename to nbformat.read() and let it open the file correctly.

Bug identified at: http://stackoverflow.com/questions/43915006/encoding-error-in-jupyter-when-run-another-notebook

Notebook files should always be read as utf-8, but the default for `io.open()` is to use a platform-dependent default encoding. The easiest way around this is to pass the filename to nbformat.read() and let it open the file correctly.

Bug identified at: http://stackoverflow.com/questions/43915006/encoding-error-in-jupyter-when-run-another-notebook
@lumberbot-app lumberbot-app bot added this to the 5.4 milestone May 13, 2017
@lumberbot-app lumberbot-app bot added the bug label May 13, 2017
@takluyver takluyver merged commit b9171aa into 5.x May 13, 2017
@takluyver takluyver deleted the auto-backport-of-pr-10558 branch May 13, 2017 20:40
@Carreau Carreau added the backported PR that have been backported by MrMeeseeks label May 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backported PR that have been backported by MrMeeseeks bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants