notebook
notebook copied to clipboard
Change the (natural) language of the Notebook interface back to English
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
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
You can fix it by go to Setting in Chrome => Advanced => Languages => put the language you want to use in the top
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
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
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
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.
You can fix it by go to Setting in Chrome => Advanced => Languages => put the language you want to use in the top
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.
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
You can fix it by go to Setting in Chrome => Advanced => Languages => put the language you want to use in the top
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!!!!
Under macOS 12.5.1 / Chrome 105.0, I needed to combine three of the above workarounds:
- Under Chrome Preferences, put English on top.
- Under Chrome Preferences, suppress my local language.
- 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'
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.
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!