{"action":"created","issue":{"url":"https://api.github.com/repos/ipython/ipython/issues/7412","labels_url":"https://api.github.com/repos/ipython/ipython/issues/7412/labels{/name}","comments_url":"https://api.github.com/repos/ipython/ipython/issues/7412/comments","events_url":"https://api.github.com/repos/ipython/ipython/issues/7412/events","html_url":"https://github.com/ipython/ipython/pull/7412","id":53948122,"number":7412,"title":"Define kernel_model within the MultiKernelManager","user":{"login":"rgbkrk","id":836375,"avatar_url":"https://avatars.githubusercontent.com/u/836375?v=3","gravatar_id":"","url":"https://api.github.com/users/rgbkrk","html_url":"https://github.com/rgbkrk","followers_url":"https://api.github.com/users/rgbkrk/followers","following_url":"https://api.github.com/users/rgbkrk/following{/other_user}","gists_url":"https://api.github.com/users/rgbkrk/gists{/gist_id}","starred_url":"https://api.github.com/users/rgbkrk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgbkrk/subscriptions","organizations_url":"https://api.github.com/users/rgbkrk/orgs","repos_url":"https://api.github.com/users/rgbkrk/repos","events_url":"https://api.github.com/users/rgbkrk/events{/privacy}","received_events_url":"https://api.github.com/users/rgbkrk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-10T06:07:08Z","updated_at":"2015-01-10T19:45:51Z","closed_at":"2015-01-10T19:45:51Z","pull_request":{"url":"https://api.github.com/repos/ipython/ipython/pulls/7412","html_url":"https://github.com/ipython/ipython/pull/7412","diff_url":"https://github.com/ipython/ipython/pull/7412.diff","patch_url":"https://github.com/ipython/ipython/pull/7412.patch"},"body":"When trying to update minrk/singlecell to IPython3 I ran into issues with the MultiKernelManager not having `kernel_model` defined. At first I subclassed it,\r\n\r\n```\r\nclass MicroKernelManager(MultiKernelManager):\r\n    def kernel_model(self, kernel_id):\r\n        \"\"\"Return a dictionary of kernel information described in the\r\n        JSON standard model.\"\"\"\r\n        self._check_kernel_id(kernel_id)\r\n        model = {\"id\":kernel_id,\r\n                 \"name\": self._kernels[kernel_id].kernel_name}\r\n        return model\r\n```\r\n\r\nThen figured I could add it at the level of `MultiKernelManager`. Any objections? I freely admit that I don't know the scope of why its only in the `MappingKernelManager` (and subclasses)."},"comment":{"url":"https://api.github.com/repos/ipython/ipython/issues/comments/69469111","html_url":"https://github.com/ipython/ipython/pull/7412#issuecomment-69469111","issue_url":"https://api.github.com/repos/ipython/ipython/issues/7412","id":69469111,"user":{"login":"rgbkrk","id":836375,"avatar_url":"https://avatars.githubusercontent.com/u/836375?v=3","gravatar_id":"","url":"https://api.github.com/users/rgbkrk","html_url":"https://github.com/rgbkrk","followers_url":"https://api.github.com/users/rgbkrk/followers","following_url":"https://api.github.com/users/rgbkrk/following{/other_user}","gists_url":"https://api.github.com/users/rgbkrk/gists{/gist_id}","starred_url":"https://api.github.com/users/rgbkrk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgbkrk/subscriptions","organizations_url":"https://api.github.com/users/rgbkrk/orgs","repos_url":"https://api.github.com/users/rgbkrk/repos","events_url":"https://api.github.com/users/rgbkrk/events{/privacy}","received_events_url":"https://api.github.com/users/rgbkrk/received_events","type":"User","site_admin":false},"created_at":"2015-01-10T19:45:51Z","updated_at":"2015-01-10T19:45:51Z","body":"That makes sense. I'll switch my code over to using the `MappingKernelManager`. What I'm hoping to have is kernels without a notebook, but it seems like I'm tied to it for now."}}