twosigma/beaker-notebook — pull request #445 by scottdraves (2014-08-11 23:16:45+00:00)
Title: check if there is a session before we evaluate code to initialize it.  i...

...t is possible, when closing a previous session, that the plugin is created but with the intention of only closing it, so that it can call exit. add new function bkHelper.hasSessionId that does throw if there is no session.