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: Note, 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. 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). Jtplot.style() makes changes to matplotlib's rcParams dictionary so that figure aesthetics match those of a chosen jupyterthemes style. Jt -t grade3 -fs 95 -altp -tfs 11 -nfs 115 -cellw 88% -T Set Plotting Style (from within notebook) Jt -t onedork -fs 95 -altp -tfs 11 -nfs 115 -cellw 88% -T # choose alternate prompt layout (narrower/no numbers) # adjust cursor width (in px) and make cursor red # options: b (blue), o (orange), r (red), p (purple), g (green), x (font color) # fix the container-margins on the intro page (defaults to 'auto') # or set the cell width in pixels by leaving off the '%' sign # adjust cell width (% screen width) and line height Jt -t oceans16 -tf merriserif -tfs 10 -nf ptsans -nfs 13 # set font/font-size of markdown (text cells) and notebook (interface) # see sans-serif & serif font tables below # set code font to Fira Mono, 11.5pt # 3digit font-sizes get converted into float (115->11.5) # 2digit font-sizes > 25 get converted into float (85->8.5) # set code font to 'Roboto Mono' 12pt # (see monospace font table below) That means that making the kernel logo visible is # pointless without also making the name visible kernel logo is in same container as name # toggled with -N. # restore default theme # NOTE: Need to delete browser cache after running jt -r # If this doesn't work, try starting a new notebook session. # list available themes # onedork | grade3 | oceans16 | chesterish | monokai | solarizedl | solarizedd ĭescription of Command Line options cl options JupyterLab Themes:įinally got around to creating a pair of themes for JupyterLab with similar style and design conventions to the jupyter-themes package: I'm particularly grateful to those of you who bothered to submit pull requests - adding many excellent features that I was either too short-sighted to anticipate or simply incapable of implementing on my own. I'll also take this opportunity to say thank you to everyone who regularly used, expressed appreciation for, and contributed to jupyter-themes. Jupyterthemes Theme-ify your Jupyter Notebooks! AuthorĪs anyone who has opened a bug report or feature request in the last several years can attest, I have begun scaling back support for the jupyter-themes package - mostly due to my personal preference for using Jupyter Lab over Jupyter Notebook classic (see update below for two of my JupyterLab theme repos).įor those with continued interest in using jupyter-themes I am planning to write up a tutorial for how to add your own custom themes to your local jt installation as well as a contributing guide for those who would like submit pull-requests to the official pacakge.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |