notebook icon indicating copy to clipboard operation
notebook copied to clipboard

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

Open grumpfou opened this issue 5 years ago • 24 comments

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

grumpfou avatar Oct 30 '18 17:10 grumpfou

CC @Carreau

grumpfou avatar Oct 30 '18 17:10 grumpfou

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.

Carreau avatar Oct 30 '18 17:10 Carreau

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

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

Carreau avatar Nov 04 '18 17:11 Carreau

same issue, any solution?

bensdm avatar Nov 28 '18 09:11 bensdm

same issue, any solution?

yltang52 avatar Jan 09 '19 07:01 yltang52

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.

remorsecs avatar Jan 21 '19 10:01 remorsecs

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.

sdlins avatar Mar 07 '19 20:03 sdlins

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

Chinh052010 avatar Apr 12 '19 08:04 Chinh052010

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)

Lysander086 avatar Apr 14 '19 11:04 Lysander086

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

lmingzhi avatar Apr 23 '19 02:04 lmingzhi

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

this works for me.

dev-techmoe avatar May 15 '19 04:05 dev-techmoe

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!

Lucecpkn avatar May 24 '19 22:05 Lucecpkn

nothing from solutions above worked with me.

OS: windows 10

Mahmoodsalah avatar Jul 20 '19 16:07 Mahmoodsalah

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

HouariZegai avatar Aug 09 '19 19:08 HouariZegai

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.

yassine-safraoui avatar Oct 12 '19 14:10 yassine-safraoui

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!!

Vercaca avatar Oct 14 '19 07:10 Vercaca

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.

kenmaxnejp avatar Mar 24 '20 03:03 kenmaxnejp

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.

HongYang57 avatar Jul 01 '20 03:07 HongYang57

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".

klchang avatar Jul 04 '20 02:07 klchang

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.

tandav avatar Nov 01 '20 14:11 tandav

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.

Solved by this.

roobooot avatar Aug 05 '21 03:08 roobooot

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

this works for me.

This works for me too. Thank you!

I tried these settings " export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8 " but it didn't work for me.

my env: conda version: 4.10.1 python version: 3.6.13 ubuntu: 20.04

3chdog avatar Jan 28 '22 09:01 3chdog

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.

Thank u sooooooo much! It works for me!!!!

ClancyCC avatar Jun 26 '22 02:06 ClancyCC

Under macOS 12.5.1 / Chrome 105.0, I needed to combine three of the above workarounds:

  1. Under Chrome Preferences, put English on top.
  2. Under Chrome Preferences, suppress my local language.
  3. Under terminal, language voodoo before launching the command.

I defined a shortcut juno in my .bash_profile:

alias juno='LANGUAGE="" LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 jupyter notebook --browser chrome'

laowantong avatar Sep 07 '22 06:09 laowantong

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.

That's really what I want! I don't want to change ENV language settings.

rijieli avatar Oct 12 '22 02:10 rijieli

Closing as this will be fixed in the upcoming 7.0 release: https://jupyter-notebook.readthedocs.io/en/latest/notebook_7_features.html#internationalization

https://github.com/jupyter/notebook/assets/591645/6e90849c-58e4-4b25-90bf-b6357d232860

You can try the Notebook 7 pre-release with pip install --pre notebook.

Feel free to open a new topic on Discourse if you have more questions, thanks!

jtpio avatar May 16 '23 07:05 jtpio