答案是这个问题 https://stackoverflow.com/questions/40518614/how-to-apply-theme-to-jupyter-lab指出“JupyterLab Dark”主题现在作为原版的一部分提供jupyter-lab
安装。
我该如何配置jupyter-lab
以便它在已应用该主题的情况下启动第一次发射时,这样我就不必每次启动 jupyter docker 容器时都手动选择它?
由于 mike 的回答和 MarkusOdenthal 的评论对我来说不起作用,当我使用 jupyter docker 堆栈时,我寻找了不同的解决方案,它接缝使用overrides.json
是当前推荐的方法:
https://jupyterlab.readthedocs.io/en/stable/user/directories.html#overridesjson https://jupyterlab.readthedocs.io/en/stable/user/directories.html#overridesjson
简而言之:
检查应用程序目录jupyter lab path
并放置一个名为overrides.json
含有
{
"@jupyterlab/apputils-extension:themes": {
"theme": "JupyterLab Dark"
}
}
into <application directory>/settings/
(e.g. /opt/conda/share/jupyter/lab/settings/
对于官方 jupyter docker 容器)
因此,如果您想从 jupyter 获得具有深色主题的基础映像,则 Dockerfile 将是
FROM jupyter/base-notebook
COPY overrides.json /opt/conda/share/jupyter/lab/settings/
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)