Notebook: Change the (natural) language of the Notebook interface back to English

Created on 30 Oct 2018  路  20Comments  路  Source: jupyter/notebook

Recently all the interface of the Jupyter notebook has been automatically translated into the my own language (French). It is the case on all the web browsers I've tested (Firefox, Chrome, Chromium). I've tried to bring it back to English. It seems there was no option in the Jupyter-notebook config file; I tried to change the interface of the web browser itself and it had no effect.

The only solution I found was to open a terminal and write

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

before launching jupyter-notebook.

I would had imagine a more convenient way to change the language of the notebook.

Python: 3.6.6
Jupyter-notebbok --version : 5.7.0
OS : Ubuntu 18.04

Most helpful comment

You can fix it by go to Setting in Chrome => Advanced => Languages => put the language you want to use in the top
image

All 20 comments

CC @Carreau

Thanks for opening this.

I'm pretty sure I managed to dynamically switch at some point last time I tried the in internationalization. I see some information in the internationalisation readme, buthttps://github.com/jupyter/notebook/blob/04a686dbaf9dfe553324a03cb9e6f778cf1e3da1/notebook/i18n/README.md but it should at least be better documented on in the rendered documentation on readthedoc.

so I poked around and I'm not sure how to dynamically change language.

I've found this, but that looks heavy handed.

same issue, any solution?

same issue, any solution?

Ref: https://github.com/jupyter/notebook/tree/5.7.x/notebook/i18n#how-the-language-is-selected-

Linux solution:
Open terminal, and clear the environment variable $LANGUAGE,
e.g. (bash)

export LANGUAGE=

and then run jupyter notebook on this shell.

Ref: https://github.com/jupyter/notebook/tree/5.7.x/notebook/i18n#how-the-language-is-selected-

Linux solution:
Open terminal, and clear the environment variable $LANGUAGE,
e.g. (bash)

export LANGUAGE=

and then run jupyter notebook on this shell.

Unfortunately, this tip didn't work for me (Linux Deepin). At least not completely because when searching commands via Command Pallete (CTRL + SHIFT + P) the commands list is still in French! :-/

Any workaround?

-- Edit
I got english based in this answer: https://github.com/ipython/ipython/issues/10980#issuecomment-373998906
My first browser language is pt_BR, but the 2nd was French. I put english as 2nd, updated the page and now it is ok.

You can fix it by go to Setting in Chrome => Advanced => Languages => put the language you want to use in the top
image

You can fix it by go to Setting in Chrome => Advanced => Languages => put the language you want to use in the top
image

thanks a lot. this works for me in windows 10.(I didn't use powershell to fix this problem)

Recently all the interface of the Jupyter notebook has been automatically translated into the my own language (French). It is the case on all the web browsers I've tested (Firefox, Chrome, Chromium). I've tried to bring it back to English. It seems there was no option in the Jupyter-notebook config file; I tried to change the interface of the web browser itself and it had no effect.

The only solution I found was to open a terminal and write

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

It works for me under :
Python: 3.7.3
jupyer 4.4.0
MacOS 10.14.3

LANGUAGE="" LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 jupyter notebook

this works for me.

You can fix it by go to Setting in Chrome => Advanced => Languages => put the language you want to use in the top
image

This works for me in Win10 chrome. Thank you so much!
I have always tried to modify the language back to English for webpages in chrome. This language configuration is the first place i went to, but i found it only changed the chrome fonts language, but not the webpage default display language.
Until today, i find it's the order of language list that decides the display language when you open a webpage... and we have to move the English on top of the list!

nothing from solutions above worked with me.

OS: windows 10

There are no solutions mentioned above worked with me!
OS: windows 7

You can fix it by go to Setting in Chrome => Advanced => Languages => put the language you want to use in the top
image

It worked like charm, thanks.

nothing from solutions above worked with me.

OS: windows 10

set LC_ALL=en_US.UTF-8
set LANG=en_US.UTF-8

It's work!!

Ref: https://github.com/jupyter/notebook/tree/5.7.x/notebook/i18n#how-the-language-is-selected-

Linux solution:
Open terminal, and clear the environment variable $LANGUAGE,
e.g. (bash)

export LANGUAGE=

and then run jupyter notebook on this shell.

It works at ubuntu 18.04.

This is my solution: /anaconda3/lib/python3.7/site-packages/notebook/i18n/xxx <---- Try rename this xxx file to anything else and reopen jupyter notebook.
e.g. /anaconda3/lib/python3.7/site-packages/notebook/i18n/zh_CN -----> zh_CN_old and reopen jupyter notebook.

This is my solution: /anaconda3/lib/python3.7/site-packages/notebook/i18n/xxx <---- Try rename this xxx file to anything else and reopen jupyter notebook.
e.g. /anaconda3/lib/python3.7/site-packages/notebook/i18n/zh_CN -----> zh_CN_old and reopen jupyter notebook.

It works for me. In Windows 7, rename "X:\xxx\Anaconda3\Lib\site-packages\notebook\i18n\zh_CN" directory to "X:\xxx\Anaconda3\Lib\site-packages\notebook\i18n\zh_CN_old".

You can fix it by go to Setting in Chrome => Advanced => Languages => put the language you want to use in the top
image

For me just putting prefered language on top was not enough. I had to remove undesired language from that list. Then it showed in english.

Was this page helpful?
0 / 5 - 0 ratings