{"action":"created","issue":{"url":"https://api.github.com/repos/nteract/nteract/issues/248","repository_url":"https://api.github.com/repos/nteract/nteract","labels_url":"https://api.github.com/repos/nteract/nteract/issues/248/labels{/name}","comments_url":"https://api.github.com/repos/nteract/nteract/issues/248/comments","events_url":"https://api.github.com/repos/nteract/nteract/issues/248/events","html_url":"https://github.com/nteract/nteract/issues/248","id":142504459,"number":248,"title":"Handle IPython codemirror mode","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,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-03-21T23:55:21Z","updated_at":"2016-08-20T22:43:51Z","closed_at":"2016-08-20T22:43:51Z","body":"From https://github.com/jupyter/notebook/blob/a1458ce8fc275a7acdbd47a86fd7072e989d38b1/notebook/static/notebook/js/codemirror-ipython.js#L20-L37:\r\n\r\n```js\r\nCodeMirror.defineMode(\"ipython\", function(conf, parserConf) {\r\n  var pythonConf = {};\r\n  for (var prop in parserConf) {\r\n    if (parserConf.hasOwnProperty(prop)) {\r\n      pythonConf[prop] = parserConf[prop];\r\n    }\r\n  }\r\n  pythonConf.name = 'python';\r\n  pythonConf.singleOperators = new RegExp(\"^[\\\\+\\\\-\\\\*/%&|\\\\^~<>!\\\\?]\");\r\n  if (pythonConf.version === 3) {\r\n    pythonConf.identifiers = new RegExp(\"^[_A-Za-z\\u00A1-\\uFFFF][_A-Za-z0-9\\u00A1-\\uFFFF]*\");\r\n  } else if (pythonConf.version === 2) {\r\n    pythonConf.identifiers = new RegExp(\"^[_A-Za-z][_A-Za-z0-9]*\");\r\n  }\r\n  return CodeMirror.getMode(conf, pythonConf);\r\n}, 'python');\r\n\r\nCodeMirror.defineMIME(\"text/x-ipython\", \"ipython\");\r\n```"},"comment":{"url":"https://api.github.com/repos/nteract/nteract/issues/comments/241228359","html_url":"https://github.com/nteract/nteract/issues/248#issuecomment-241228359","issue_url":"https://api.github.com/repos/nteract/nteract/issues/248","id":241228359,"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":"2016-08-20T22:43:51Z","updated_at":"2016-08-20T22:43:51Z","body":"Duplicate of #389, I'll keep yours @Carreau. "}}
{"actor":{"display_login":"rgbkrk"}}