0

我一直在尝试使用现有的 i18n 实现用我的母语翻译 jupyter notebook 界面。我已经按照自述文件的建议创建了翻译文件,现在我想将它添加到 jupyter。

https://github.com/jupyter/notebook/tree/master/notebook/i18n

但我在我的计算机(Ubuntu 16.04)上找不到 /notebook/i18n/ 文件夹。我必须再安装一次 jupyter 还是我可以将翻译文件添加到我机器上现有的 jupyter 安装中并运行它?

4

2 回答 2

0

我刚刚重新安装了 jupyter,这次 i18n 文件夹位于:

/usr/local/lib/python3.5/dist-packages/notebook/i18n/i18n
于 2018-01-17T13:12:43.083 回答
0

首先,通过python找到lib_path:

import sys
from distutils.sysconfig import get_python_lib
print (get_python_lib())

你会发现它在
${lib_path}/notebook/i18n/

于 2019-04-03T02:53:22.537 回答