Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@stefanv
Created November 5, 2012 01:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stefanv/4014765 to your computer and use it in GitHub Desktop.
Save stefanv/4014765 to your computer and use it in GitHub Desktop.
IPython with Consolas
$ git diff -w notebook.css
diff --git a/IPython/frontend/html/notebook/static/css/notebook.css b/IPython/frontend
index 9396bf7..55e3a64 100644
--- a/IPython/frontend/html/notebook/static/css/notebook.css
+++ b/IPython/frontend/html/notebook/static/css/notebook.css
@@ -311,6 +311,7 @@ div.text_cell_render {
.CodeMirror {
line-height: 1.231; /* Changed from 1em to our global default */
+ font-family: Consolas;
}
.CodeMirror-scroll {
@@ -391,6 +392,8 @@ p.dialog {
font-family: monospace;
}
@Carreau
Copy link

Carreau commented Nov 5, 2012

You can add your custom css without patching IPython installation by overwriting custom.css in .ipython/profile_xxx/static/css/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment