我们使用的是 0.35.x 版本……以下步骤对我有用……它将创建轻主题的克隆,将其安装在 jupyter 实验室中,您可以从设置菜单中选择它。你可以自定义这个主题,构建它并在 jupyter lab 中产生效果
{ "compilerOptions":
{ "declaration": true,
"lib": ["es2015", "dom"],
"module": "commonjs",
"moduleResolution": "node",
"noEmitOnError": true,
"noUnusedLocals": true,
"outDir": "lib",
"rootDir": "src",
"strict": true,
"strictNullChecks": false,
"target": "es2015",
"types": []
},
"include": ["src/*"]
}
[由此处的步骤创建https://jupyterlab.readthedocs.io/en/stable/developer/xkcd_extension_tutorial.html#xkcd-extension-tutorial]
在主题文件夹内..
- 运行以下命令
jlpm install
, jlpm run build
,jlpm run build:webpack
- 打开另一个conda终端,进入repo文件夹并运行
conda activate jupyterlab-ext then jupyter labextension install .
- 然后在 conda 终端中
conda activate jupyterlab-ext
,jupyter lab --watch
对于 1.0 版,可以使用这个 cookie 切割器... https://github.com/jupyterlab/theme-cookiecutter