diff --git a/IPython/html/static/notebook/js/kernelselector.js b/IPython/html/static/notebook/js/kernelselector.js
index 28afc5b13..2327a6141 100644
--- a/IPython/html/static/notebook/js/kernelselector.js
+++ b/IPython/html/static/notebook/js/kernelselector.js
@@ -169,8 +169,7 @@ define([
var that = this;
if (typeof selected === 'string') {
selected = {
- name: selected,
- language: selected
+ name: selected
};
}
if (this._loaded) {
diff --git a/IPython/html/static/notebook/js/notebook.js b/IPython/html/static/notebook/js/notebook.js
index 7dd3f52ab..69e752092 100644
--- a/IPython/html/static/notebook/js/notebook.js
+++ b/IPython/html/static/notebook/js/notebook.js
@@ -2219,10 +2219,13 @@ define(function (require) {
} else if (this.metadata.language) {
// compat with IJulia, IHaskell, and other early kernels
// adopters that where seting a language metadata.
- this.kernel_selector.set_kernel(this.metadata.language);
+ this.kernel_selector.set_kernel({
+ name: "(No name)",
+ language: this.metadata.language
+ });
// this shoudl be stored in kspec now, delete it.
// remove once we do not support notebook v3 anymore.
- del this.metadata.language;
+ delete this.metadata.language;
} else {
// setting kernel via set_kernel above triggers start_session,
// otherwise start a new session with the server's default kernel