{"action":"created","issue":{"url":"https://api.github.com/repos/twosigma/beaker-notebook/issues/2323","labels_url":"https://api.github.com/repos/twosigma/beaker-notebook/issues/2323/labels{/name}","comments_url":"https://api.github.com/repos/twosigma/beaker-notebook/issues/2323/comments","events_url":"https://api.github.com/repos/twosigma/beaker-notebook/issues/2323/events","html_url":"https://github.com/twosigma/beaker-notebook/issues/2323","id":106036896,"number":2323,"title":"Clojure code should run in a notebook unique namespace","user":{"login":"farrellm","id":165717,"avatar_url":"https://avatars.githubusercontent.com/u/165717?v=3","gravatar_id":"","url":"https://api.github.com/users/farrellm","html_url":"https://github.com/farrellm","followers_url":"https://api.github.com/users/farrellm/followers","following_url":"https://api.github.com/users/farrellm/following{/other_user}","gists_url":"https://api.github.com/users/farrellm/gists{/gist_id}","starred_url":"https://api.github.com/users/farrellm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/farrellm/subscriptions","organizations_url":"https://api.github.com/users/farrellm/orgs","repos_url":"https://api.github.com/users/farrellm/repos","events_url":"https://api.github.com/users/farrellm/events{/privacy}","received_events_url":"https://api.github.com/users/farrellm/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/twosigma/beaker-notebook/labels/Bug","name":"Bug","color":"fc2929"},{"url":"https://api.github.com/repos/twosigma/beaker-notebook/labels/Language%20Plugins","name":"Language Plugins","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-11T15:43:34Z","updated_at":"2015-09-11T15:50:26Z","closed_at":null,"body":"Currently, all Clojure code runs in the \"clojure.core\" namespace, but this can cause problems when importing external code and allows bad interactions between notebooks. This can be avoided by giving each notebook a default namespace where code is evaluated by default.\r\n\r\nPossible function to do this:\r\n\r\n    (defn load-string-in-ns [n s]\r\n      (binding [*ns* (find-ns n)]\r\n        (load-string s)))\r\n\r\nReferences:\r\nhttp://stackoverflow.com/questions/6443594/how-to-load-string-to-current-namespace-not-core"},"comment":{"url":"https://api.github.com/repos/twosigma/beaker-notebook/issues/comments/139582190","html_url":"https://github.com/twosigma/beaker-notebook/issues/2323#issuecomment-139582190","issue_url":"https://api.github.com/repos/twosigma/beaker-notebook/issues/2323","id":139582190,"user":{"login":"scottdraves","id":963093,"avatar_url":"https://avatars.githubusercontent.com/u/963093?v=3","gravatar_id":"","url":"https://api.github.com/users/scottdraves","html_url":"https://github.com/scottdraves","followers_url":"https://api.github.com/users/scottdraves/followers","following_url":"https://api.github.com/users/scottdraves/following{/other_user}","gists_url":"https://api.github.com/users/scottdraves/gists{/gist_id}","starred_url":"https://api.github.com/users/scottdraves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottdraves/subscriptions","organizations_url":"https://api.github.com/users/scottdraves/orgs","repos_url":"https://api.github.com/users/scottdraves/repos","events_url":"https://api.github.com/users/scottdraves/events{/privacy}","received_events_url":"https://api.github.com/users/scottdraves/received_events","type":"User","site_admin":false},"created_at":"2015-09-11T15:50:26Z","updated_at":"2015-09-11T15:50:26Z","body":"Thanks Matt, Clojure is due for an overhaul in about a month, we'll fix this then."}}