Skip to content

Instantly share code, notes, and snippets.

@oryon-dominik
Last active January 26, 2021 09:41
Show Gist options
  • Save oryon-dominik/7af94434a1e14470e25db19a8d8c8acf to your computer and use it in GitHub Desktop.
Save oryon-dominik/7af94434a1e14470e25db19a8d8c8acf to your computer and use it in GitHub Desktop.
jupyter theme settings
#!/bin/bash
# pip install --upgrade notebook
# pip install jupyterthemes
# change onedork colors in ...\site-packages\jupyterthemes\styles\onedark.less
# @unrendered-text: #f5da42;
# @header-fg: #f5da42;
# e.g in docker:
# sed -i 's/@unrendered-text: #7aa05d;/@unrendered-text: #f5da42;/g' /usr/local/lib/python3.8/site-packages/jupyterthemes/styles/onedork.less
# sed -i 's/@header-fg: #7aa05d;/@header-fg: #f5da42;/g' /usr/local/lib/python3.8/site-packages/jupyterthemes/styles/onedork.less
# jt --theme onedork --monofont roboto --monosize 130 --nbfont robotosans --nbfontsize 100 --tcfont robotosans --tcfontsize 150 --dffontsize 100 --outfontsize 115 --margins 200 --cursorcolor p --cursorwidth 3 --cellwidth 82% --toolbar --nbname --lineheight 168 --altmarkdown --kernellogo
poetry add jupyterthemes
# available fonts:
# mono: https://github.com/dunovank/jupyter-themes#monospace-fonts-code-cells
# sans: https://github.com/dunovank/jupyter-themes#sans-serif-fonts
# serif: https://github.com/dunovank/jupyter-themes#serif-fonts
jt \
--theme onedork \
--monofont roboto --monosize 130 \
--nbfont robotosans --nbfontsize 100 \
--tcfont robotosans --tcfontsize 150 \
--dffontsize 100 \
--outfontsize 115 \
--margins 200 \
--cursorcolor p --cursorwidth 3 \
--cellwidth 82% \
--toolbar \
--nbname \
--lineheight 168 \
--altmarkdown \
--kernellogo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment