From bede3565853fb15d106942a02162c63531a00f87 Mon Sep 17 00:00:00 2001 From: Thomas Kluyver Date: Fri, 24 Apr 2015 13:37:19 -0700 Subject: [PATCH] Expose JS terminal object on window This is handy for interactive debugging and fiddling, but it shouldn't be documented. --- jupyter_notebook/static/terminal/js/main.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jupyter_notebook/static/terminal/js/main.js b/jupyter_notebook/static/terminal/js/main.js index 3358882fc..84ec2f599 100644 --- a/jupyter_notebook/static/terminal/js/main.js +++ b/jupyter_notebook/static/terminal/js/main.js @@ -60,4 +60,7 @@ require([ $(window).height(), $(window).width()])); }; + // Expose terminal for fiddling with in the browser + window.terminal = terminal; + });