【问题标题】:jupyter setup i18n on exiting notebookjupyter 在退出笔记本上设置 i18n
【发布时间】:2018-06-25 04:13:37
【问题描述】:

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

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

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

【问题讨论】:

    标签: ipython jupyter-notebook jupyter jupyterhub


    【解决方案1】:

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

    /usr/local/lib/python3.5/dist-packages/notebook/i18n/i18n
    

    【讨论】:

      【解决方案2】:

      首先,通过python找到lib_path:

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

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

      【讨论】:

        猜你喜欢
        • 2018-09-04
        • 1970-01-01
        • 2020-08-26
        • 1970-01-01
        • 2022-07-21
        • 1970-01-01
        • 2021-08-05
        • 2019-04-03
        • 2020-12-26
        相关资源
        最近更新 更多