How to apply theme to jupyter lab

后端 未结 2 750
春和景丽
春和景丽 2020-12-14 15:11

I tried to apply dark theme by putting a *.css file in the ~/.jupyter/custom/ directory (like here). This changes a theme for a normal jupyter notebook. But no affect on the

2条回答
  •  再見小時候
    2020-12-14 16:05

    I bit the bullet, and figured out how to write a full custom theme as an extension.

    The process is:

    1. Copy the Light theme from jupyterlab/packages to your own repository.
    2. Edit the package metadata in package.json and src/index.ts
    3. Edit the CSS stylesheets in styles
    4. Install the theme using jupyter labextensions install .
      • You may need to manually generate dependencies using node

    Here is my theme for future reference - https://github.com/nfultz/jupyterlab-theme-simple-extension

    EDIT:

    There's now a cookiecutter template to make it easier: https://github.com/jupyterlab/theme-cookiecutter

提交回复
热议问题