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

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

Closed
grumpfou opened this issue Oct 30, 2018 · 26 comments
Closed
Assignees
Milestone

Comments

@grumpfou
Copy link

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
Copy link
Author

grumpfou commented Oct 30, 2018

CC @Carreau

@Carreau
Copy link
Member

Carreau commented Oct 30, 2018

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 Carreau self-assigned this Oct 30, 2018
@Carreau
Copy link
Member

Carreau commented Nov 4, 2018

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

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

@bensdm
Copy link

bensdm commented Nov 28, 2018

same issue, any solution?

1 similar comment
@yltang52
Copy link

yltang52 commented Jan 9, 2019

same issue, any solution?

@remorsecs
Copy link

remorsecs commented Jan 21, 2019

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.

@sdlins
Copy link

sdlins commented Mar 7, 2019

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: ipython/ipython#10980 (comment)
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.

@Chinh052010
Copy link

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

@Lysander086
Copy link

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)

@lmingzhi
Copy link

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

@dev-techmoe
Copy link

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

this works for me.

@Lucecpkn
Copy link

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!

@Mahmoodsalah
Copy link

nothing from solutions above worked with me.

OS: windows 10

@HouariZegai
Copy link

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

@yassine-safraoui
Copy link

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.

@Vercaca
Copy link

Vercaca commented Oct 14, 2019

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

@kenmaxnejp
Copy link

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.

@HongYang57
Copy link

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.

@klchang
Copy link

klchang commented Jul 4, 2020

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

@tandav
Copy link

tandav commented Nov 1, 2020

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.

@roobooot
Copy link

roobooot commented Aug 5, 2021

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.

@3chdog
Copy link

3chdog commented Jan 28, 2022

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

@ClancyCC
Copy link

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

@laowantong
Copy link

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'

@jtpio jtpio added this to the 7.0 milestone Sep 27, 2022
@rijieli
Copy link

rijieli commented Oct 12, 2022

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.

@jtpio
Copy link
Member

jtpio commented May 16, 2023

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

localization-english-french.mp4

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 jtpio closed this as completed May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests