【问题标题】:Jupyter notebook become RTL after upgradeJupyter notebook 升级后成为 RTL
【发布时间】:2018-06-23 01:03:05
【问题描述】:

我在 miniconda 中创建了 python 3.6 环境。 Jupyter 笔记本现在从右到左工作

我该如何解决?

已安装的软件包:

ipykernel                 4.7.0                    py36_0    conda-forge
ipython                   6.2.1                    py36_1    conda-forge
ipython_genutils          0.2.0                    py36_0    conda-forge
jsonschema                2.5.1                    py36_0    conda-forge
jupyter_client            5.2.1                    py36_0    conda-forge
jupyter_core              4.4.0                      py_0    conda-forge
notebook                  5.2.2                    py36_1    conda-forge

笔记本元数据:

{
  "celltoolbar": "Edit Metadata",
  "kernelspec": {
    "name": "python3",
    "display_name": "Python 3",
    "language": "python"
  },
  "language_info": {
    "name": "python",
    "version": "3.6.4",
    "mimetype": "text/x-python",
    "codemirror_mode": {
      "name": "ipython",
      "version": 3
    },
    "pygments_lexer": "ipython3",
    "nbconvert_exporter": "python",
    "file_extension": ".py"
  }
}

【问题讨论】:

  • 你可以尝试删除codemirror_mode dict
  • @HerryPotei:不,那不是那个 dict 的用途。这反而表明该文本框编辑字段存在问题。
  • 如何检查文本框编辑字段?
  • 我注意到 Jupyter 仅在 Chrome 上默认为 RTL。方向是 Safari 和 firefox 上的 LTR。试图从 Chrome 和 Mac O/S 中删除任何希伯来语区域设置,但这并没有解决它,所以现在我正在使用另一个带有 Jupyter 的浏览器(每次都用 ctrl-shift-F 切换到 RTL 太烦人了)。任何为 Chrome 修复该问题的帮助将不胜感激。

标签: python anaconda jupyter-notebook right-to-left


【解决方案1】:

在笔记本中:

  1. ctrl+shift+F

  2. 搜索rtl

  3. 选择切换 rtl

【讨论】:

  • 你能解释一下为什么这会是答案吗?
【解决方案2】:

对我有用的永久解决方案:

在您的 chrome 上 -> 设置 -> 高级 -> 语言

单击箭头以订购语言:

确保您的第一语言是 ltr 语言。

【讨论】:

    猜你喜欢
    • 2020-09-11
    • 1970-01-01
    • 1970-01-01
    • 2023-01-28
    • 2019-11-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多