From f123b0d2adb190298daa952fdb2eaf496cdc63ab Mon Sep 17 00:00:00 2001 From: Thomas Kluyver Date: Wed, 24 Sep 2014 11:57:38 -0700 Subject: [PATCH 1/4] Initial support for supplying kernel logos in kernel spec --- IPython/html/static/notebook/js/kernelselector.js | 1 + IPython/html/templates/notebook.html | 1 + 2 files changed, 2 insertions(+) diff --git a/IPython/html/static/notebook/js/kernelselector.js b/IPython/html/static/notebook/js/kernelselector.js index 46d488289..bf78b7ca7 100644 --- a/IPython/html/static/notebook/js/kernelselector.js +++ b/IPython/html/static/notebook/js/kernelselector.js @@ -85,6 +85,7 @@ define([ this.events.on('spec_changed.Kernel', function(event, data) { that.current_selection = data.name; that.element.find("#current_kernel_spec").find('.kernel_name').text(data.display_name); + that.element.find("#current_kernel_logo").attr("src", "/kernelspecs/"+data.name+"/logo-32.png"); }); this.events.on('kernel_created.Session', function(event, data) { diff --git a/IPython/html/templates/notebook.html b/IPython/html/templates/notebook.html index 3cf4b0ea1..45787a6e1 100644 --- a/IPython/html/templates/notebook.html +++ b/IPython/html/templates/notebook.html @@ -42,6 +42,7 @@ class="notebook_app" +