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

Let nbformat take care of opening the file #10558

Merged
merged 1 commit into from May 13, 2017

Conversation

takluyver
Copy link
Member

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
@takluyver takluyver added the bug label May 13, 2017
@takluyver takluyver added this to the 5.4 milestone May 13, 2017
@Carreau Carreau merged commit d936dda into ipython:master May 13, 2017
@Carreau
Copy link
Member

Carreau commented May 13, 2017

@meeseeksdev backport

lumberbot-app bot pushed a commit that referenced this pull request May 13, 2017
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
takluyver added a commit that referenced this pull request May 13, 2017
@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