Closed Muhamob closed 5 years ago
Check out this pull request on ReviewNB: https://app.reviewnb.com/yandexdataschool/nlp_course/pull/33
You'll be able to see visual diffs and write comments on notebook cells. Powered by ReviewNB.
Thank you! / We'll set the correct locale in docker by the next on-campus iteration /
Fix problem while opening in docker container.
Problem occurs while running ./week01_embeddings/seminar.ipynb in docker container. What i found in documentation is that Python 3 build-in function open(filename) by default set encoding parameter equal to the output of locale.getpreferredencoding(False) function. Which is in case of running in docker equal to 'ANSI_X3.4-1968'.
There are two solutions I know. The first one is to use encoding="utf-8" parameter in open() function. Another one is to set proper locale in Dockerfile
An output of locale in bash: