{"id":13418671,"url":"https://github.com/dunovank/jupyter-themes","last_synced_at":"2025-12-18T11:22:02.539Z","repository":{"id":24442653,"uuid":"27844645","full_name":"dunovank/jupyter-themes","owner":"dunovank","description":"Custom Jupyter Notebook Themes","archived":false,"fork":false,"pushed_at":"2023-10-18T13:16:38.000Z","size":46325,"stargazers_count":9823,"open_issues_count":205,"forks_count":1051,"subscribers_count":154,"default_branch":"master","last_synced_at":"2025-04-23T16:08:39.864Z","etag":null,"topics":["css","jupyter","jupyter-notebook","jupyter-themes","syntax-highlighting","theme"],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dunovank.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2014-12-10T23:22:23.000Z","updated_at":"2025-04-22T12:17:44.000Z","dependencies_parsed_at":"2024-01-09T19:01:14.957Z","dependency_job_id":"4827bcc8-7d6a-44cc-9667-fbd3a5608c7b","html_url":"https://github.com/dunovank/jupyter-themes","commit_stats":{"total_commits":558,"total_committers":43,"mean_commits":"12.976744186046512","dds":"0.15412186379928317","last_synced_commit":"80bbf4ed8f92a9bd0a4f64d194e21bdc79e57c4b"},"previous_names":[],"tags_count":101,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dunovank%2Fjupyter-themes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dunovank%2Fjupyter-themes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dunovank%2Fjupyter-themes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dunovank%2Fjupyter-themes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dunovank","download_url":"https://codeload.github.com/dunovank/jupyter-themes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253746094,"owners_count":21957497,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["css","jupyter","jupyter-notebook","jupyter-themes","syntax-highlighting","theme"],"created_at":"2024-07-30T22:01:05.332Z","updated_at":"2025-12-18T11:22:02.520Z","avatar_url":"https://github.com/dunovank.png","language":"CSS","funding_links":[],"categories":["CSS","Articles/Guides/Tutorials","Jupyter拓展","Jupyter Extensions","Interesting Non EO parts Python","工具与库"],"sub_categories":["GEDI","Jupyter"],"readme":"# jupyterthemes\n## Theme-ify your Jupyter Notebooks!\n\n|    Author    |                 Version                  |                  Status                  |                   Demo                   |\n| :----------: | :--------------------------------------: | :--------------------------------------: | :--------------------------------------: |\n| Kyle Dunovan | ![image](https://img.shields.io/pypi/v/jupyterthemes.svg) | ![image](https://travis-ci.org/dunovank/jupyter-themes.svg?branch=master) | [![Binder](http://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/dunovank/jupyter-themes/master?filepath=index.ipynb) |\n\n\n## Updates\n\n### NO LONGER SUPPORTED\n\n\u003e This project is no longer active and the library is not being supported. ***Thank you*** to everyone who contributed to `jupyter-themes`!\n\n### *JupyterLab Themes*:\n\nJupyterLab themes with similar style/design conventions to `jupyter-themes`:\n\n##### JupyterLab v3.0\n* [**Legos Theme**](https://github.com/dunovank/jupyterlab_legos_ui).\n* [**Darkside Theme**](https://github.com/dunovank/jupyterlab_darkside_ui).\n\n##### JupyterLab v4.0\n* [**Darkside Theme**](https://github.com/dunovank/jupyterlab_darkside_theme).\n\n---\n\n#### JT Customizable Features\n\n#### **plotting style**\n![image](screens/onedork_reach_plots.png)\n\n#### **markdown/equations**\n![image](screens/oceans16_markdown.png)\n\n#### **pandas dataframes**\n![image](screens/grade3_table.png)\n\n#### **command palette**\n![image](screens/oceans16_command_palette.png)\n\n\n### Links\n* [jupyterthemes on PyPI](https://pypi.python.org/pypi/jupyterthemes/)\n* [jupyterthemes on GitHub](https://github.com/dunovank/jupyter-themes)\n\n### Requirements\n* Python 3.4, 3.5, 3.6, 3.7 and 3.8\n* Jupyter ([Anaconda](https://www.continuum.io/downloads) recommended)\n* matplotlib\n\n### Install with pip\n```sh\n# install jupyterthemes\npip install jupyterthemes\n\n# upgrade to latest version\npip install --upgrade jupyterthemes\n```\n\n### Install with conda\n```sh\n# install jupyterthemes\nconda install -c conda-forge jupyterthemes\n\n# update to latest version\nconda update jupyterthemes\n```\n\n### Known issues\n- **for best results:** use notebook\u003e=5.6.0 (`pip install --upgrade notebook`)\n- **refreshing / removing / resetting:** depending on your system, browser, etc., you may need to empty your browser cache after installing a new theme (`-t`) or attempting to restore the default (`-r`) in order for those changes to take effect. (see discussion [here](https://github.com/dunovank/jupyter-themes/issues/86)). At the very least you'll need to refresh your browser window (usually `cmd+r` or `ctrl+r`).\n- **install issue:** if you get an error saying `jt` is not recognized, try [this](https://github.com/dunovank/jupyter-themes/issues/92#issuecomment-300688587) fix.\n- **slow render when scrolling:** fix available [here](https://github.com/dunovank/jupyter-themes/issues/117#issuecomment-296391443)\n\n\n### Command Line Usage\n```\njt  [-h] [-l] [-t THEME] [-f MONOFONT] [-fs MONOSIZE] [-nf NBFONT]\n    [-nfs NBFONTSIZE] [-tf TCFONT] [-tfs TCFONTSIZE] [-dfs DFFONTSIZE]\n    [-m MARGINS] [-cursw CURSORWIDTH] [-cursc CURSORCOLOR] [-vim]\n    [-cellw CELLWIDTH] [-lineh LINEHEIGHT] [-altp] [-altmd] [-altout]\n    [-P] [-T] [-N] [-r] [-dfonts]\n```\n\n#### Description of Command Line options\n| cl options            |   arg   |  default   |\n| :-------------------- | :-----: | :--------: |\n| Usage help            |   -h    |     --     |\n| List Themes           |   -l    |     --     |\n| Theme Name to Install |   -t    |     --     |\n| Code Font             |   -f    |     --     |\n| Code Font-Size        |   -fs   |     11     |\n| Notebook Font         |   -nf   |     --     |\n| Notebook Font Size    |  -nfs   |     13     |\n| Text/MD Cell Font     |   -tf   |     --     |\n| Text/MD Cell Fontsize |  -tfs   |     13     |\n| Pandas DF Fontsize    |  -dfs   |     9      |\n| Output Area Fontsize  |  -ofs   |    8.5     |\n| Mathjax Fontsize (%)  | -mathfs |    100     |\n| Intro Page Margins    |   -m    |    auto    |\n| Cell Width            | -cellw  |    980     |\n| Line Height           | -lineh  |    170     |\n| Cursor Width          | -cursw  |     2      |\n| Cursor Color          | -cursc  |     --     |\n| Alt Prompt Layout     |  -altp  |     --     |\n| Alt Markdown BG Color | -altmd  |     --     |\n| Alt Output BG Color   | -altout |     --     |\n| Style Vim NBExt*      |  -vim   |     --     |\n| Toolbar Visible       |   -T    |     --     |\n| Name \u0026 Logo Visible   |   -N    |     --     |\n| Kernel Logo Visible   |   -kl   |     --     |\n| Reset Default Theme   |   -r    |     --     |\n| Force Default Fonts   | -dfonts |     --     |\n\n\n### Command Line Examples\n```sh\n# list available themes\n# onedork | grade3 | oceans16 | chesterish | monokai | solarizedl | solarizedd\njt -l\n\n# select theme...\njt -t chesterish\n\n# restore default theme\n# NOTE: Need to delete browser cache after running jt -r\n# If this doesn't work, try starting a new notebook session.\njt -r\n\n# toggle toolbar ON and notebook name ON\njt -t grade3 -T -N\n\n# toggle kernel logo.  kernel logo is in same container as name\n# toggled with -N.  That means that making the kernel logo visible is\n# pointless without also making the name visible\njt -t grade3 -N -kl\n\n# set code font to 'Roboto Mono' 12pt\n# (see monospace font table below)\njt -t onedork -f roboto -fs 12\n\n# set code font to Fira Mono, 11.5pt\n# 3digit font-sizes get converted into float (115--\u003e11.5)\n# 2digit font-sizes \u003e 25 get converted into float (85--\u003e8.5)\njt -t solarizedd -f fira -fs 115\n\n# set font/font-size of markdown (text cells) and notebook (interface)\n# see sans-serif \u0026 serif font tables below\njt -t oceans16 -tf merriserif -tfs 10 -nf ptsans -nfs 13\n\n# adjust cell width (% screen width) and line height\njt -t chesterish -cellw 90% -lineh 170\n\n# or set the cell width in pixels by leaving off the '%' sign\njt -t solarizedl -cellw 860\n\n# fix the container-margins on the intro page (defaults to 'auto')\njt -t monokai -m 200\n\n# adjust cursor width (in px) and make cursor red\n# options: b (blue), o (orange), r (red), p (purple), g (green), x (font color)\njt -t oceans16 -cursc r -cursw 5\n\n# choose alternate prompt layout (narrower/no numbers)\njt -t grade3 -altp\n\n# my two go-to styles\n# dark\njt -t onedork -fs 95 -altp -tfs 11 -nfs 115 -cellw 88% -T\n# light\njt -t grade3 -fs 95 -altp -tfs 11 -nfs 115 -cellw 88% -T\n```\n\n\n### Set Plotting Style (from within notebook)\n`jtplot.style()` makes changes to matplotlib's rcParams dictionary so that figure aesthetics match those of a chosen jupyterthemes style. In addition to setting the color scheme, `jtplot.style()` allows you to control various figure properties (spines, grid, font scale, etc.) as well as the plotting \"context\" (borrowed from [seaborn](https://seaborn.pydata.org/tutorial/aesthetics.html#scaling-plot-elements-with-plotting-context-and-set-context)).\n\nNote, these commands do not need to be re-run every time you generate a new plot, just once at the beginning of your notebook or whenever style changes are desired after that.\n\n**Pro-tip**: Include the following two lines in `~/.ipython/profile_default/startup/startup.ipy` file to set plotting style automatically whenever you start a notebook:\n```py\n# import jtplot submodule from jupyterthemes\nfrom jupyterthemes import jtplot\n\n# currently installed theme will be used to\n# set plot style if no arguments provided\njtplot.style()\n```\n\n### jtplot.style() Examples\n```py\n# import jtplot module in notebook\nfrom jupyterthemes import jtplot\n\n# choose which theme to inherit plotting style from\n# onedork | grade3 | oceans16 | chesterish | monokai | solarizedl | solarizedd\njtplot.style(theme='onedork')\n\n# set \"context\" (paper, notebook, talk, poster)\n# scale font-size of ticklabels, legend, etc.\n# remove spines from x and y axes and make grid dashed\njtplot.style(context='talk', fscale=1.4, spines=False, gridlines='--')\n\n# turn on X- and Y-axis tick marks (default=False)\n# turn off the axis grid lines (default=True)\n# and set the default figure size\njtplot.style(ticks=True, grid=False, figsize=(6, 4.5))\n\n# reset default matplotlib rcParams\njtplot.reset()\n```\n\n\n#### Monospace Fonts (code cells)\n| -f arg      | Monospace Font           |\n| :---------- | :----------------------- |\n| anka        | Anka/Coder               |\n| anonymous   | Anonymous Pro            |\n| aurulent    | Aurulent Sans Mono       |\n| bitstream   | Bitstream Vera Sans Mono |\n| bpmono      | BPmono                   |\n| code        | Code New Roman           |\n| consolamono | Consolamono              |\n| cousine     | Cousine                  |\n| dejavu      | DejaVu Sans Mono         |\n| droidmono   | Droid Sans Mono          |\n| fira        | Fira Mono                |\n| firacode    | Fira Code                |\n| generic     | Generic Mono             |\n| hack        | Hack                     |\n| hasklig     | Hasklig                  |\n| inconsolata | Inconsolata-g            |\n| inputmono   | Input Mono               |\n| iosevka     | Iosevka                  |\n| liberation  | Liberation Mono          |\n| meslo       | Meslo                    |\n| office      | Office Code Pro          |\n| oxygen      | Oxygen Mono              |\n| roboto      | Roboto Mono              |\n| saxmono     | saxMono                  |\n| source      | Source Code Pro          |\n| sourcemed   | Source Code Pro Medium   |\n| sudovar     | Sudo Variable            |\n| ptmono      | PT Mono                  |\n| ubuntu      | Ubuntu Mono              |\n\n#### Sans-Serif Fonts\n| -nf/-tf arg   | Sans-Serif Font   |\n| :------------ | :---------------- |\n| opensans      | Open Sans         |\n| droidsans     | Droid Sans        |\n| exosans       | Exo_2             |\n| latosans      | Lato              |\n| ptsans        | PT Sans           |\n| robotosans    | Roboto            |\n| sourcesans    | Source Sans Pro   |\n\n#### Serif Fonts\n| -nf/-tf arg   | Serif Font       |\n| :------------ | :--------------- |\n| loraserif     | Lora             |\n| ptserif       | PT Serif         |\n| georgiaserif  | Georgia          |\n| cardoserif    | Cardo            |\n| crimsonserif  | Crimson Text     |\n| ebserif       | EB Garamond      |\n| merriserif    | Merriweather     |\n| neutonserif   | Neuton           |\n| goudyserif    | Sorts Mill Goudy |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdunovank%2Fjupyter-themes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdunovank%2Fjupyter-themes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdunovank%2Fjupyter-themes/lists"}