{"action":"created","issue":{"url":"https://api.github.com/repos/kounoike/gitbucket-ipynb-plugin/issues/2","repository_url":"https://api.github.com/repos/kounoike/gitbucket-ipynb-plugin","labels_url":"https://api.github.com/repos/kounoike/gitbucket-ipynb-plugin/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/kounoike/gitbucket-ipynb-plugin/issues/2/comments","events_url":"https://api.github.com/repos/kounoike/gitbucket-ipynb-plugin/issues/2/events","html_url":"https://github.com/kounoike/gitbucket-ipynb-plugin/issues/2","id":270899945,"number":2,"title":"I got this error:java.util.NoSuchElementException: None.get","user":{"login":"fsxchen","id":4352780,"avatar_url":"https://avatars3.githubusercontent.com/u/4352780?v=4","gravatar_id":"","url":"https://api.github.com/users/fsxchen","html_url":"https://github.com/fsxchen","followers_url":"https://api.github.com/users/fsxchen/followers","following_url":"https://api.github.com/users/fsxchen/following{/other_user}","gists_url":"https://api.github.com/users/fsxchen/gists{/gist_id}","starred_url":"https://api.github.com/users/fsxchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fsxchen/subscriptions","organizations_url":"https://api.github.com/users/fsxchen/orgs","repos_url":"https://api.github.com/users/fsxchen/repos","events_url":"https://api.github.com/users/fsxchen/events{/privacy}","received_events_url":"https://api.github.com/users/fsxchen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-11-03T07:52:04Z","updated_at":"2017-11-03T14:32:12Z","closed_at":null,"author_association":"NONE","body":"I use python3.5.2\r\nthe jupyter version is 4.2.1"},"comment":{"url":"https://api.github.com/repos/kounoike/gitbucket-ipynb-plugin/issues/comments/341720089","html_url":"https://github.com/kounoike/gitbucket-ipynb-plugin/issues/2#issuecomment-341720089","issue_url":"https://api.github.com/repos/kounoike/gitbucket-ipynb-plugin/issues/2","id":341720089,"user":{"login":"fsxchen","id":4352780,"avatar_url":"https://avatars3.githubusercontent.com/u/4352780?v=4","gravatar_id":"","url":"https://api.github.com/users/fsxchen","html_url":"https://github.com/fsxchen","followers_url":"https://api.github.com/users/fsxchen/followers","following_url":"https://api.github.com/users/fsxchen/following{/other_user}","gists_url":"https://api.github.com/users/fsxchen/gists{/gist_id}","starred_url":"https://api.github.com/users/fsxchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fsxchen/subscriptions","organizations_url":"https://api.github.com/users/fsxchen/orgs","repos_url":"https://api.github.com/users/fsxchen/repos","events_url":"https://api.github.com/users/fsxchen/events{/privacy}","received_events_url":"https://api.github.com/users/fsxchen/received_events","type":"User","site_admin":false},"created_at":"2017-11-03T14:32:12Z","updated_at":"2017-11-03T14:32:12Z","author_association":"NONE","body":"I fix it,I think is here,in you code\r\n```\r\n  def getLanguage(nb: IPyNotebook, cell: Cell): String = {\r\n    if (nb.nbformat < 4) {\r\n      cell.language.getOrElse(\"\")\r\n    } else {\r\n      nb.metadata.language_info.get.name\r\n    }\r\n  }\r\n```\r\nin my ipynb file, the nbformat is 4, but the metadata is like this\r\n```\r\n\"metadata\": {\r\n  \"kernelspec\": {\r\n   \"display_name\": \"Python 2\",\r\n   \"language\": \"python\",\r\n   \"name\": \"python2\"\r\n  }\r\n```\r\nso i change the code to\r\n```\r\n  def getLanguage(nb: IPyNotebook, cell: Cell): String = {\r\n    if (nb.nbformat <= 4) {\r\n      cell.language.getOrElse(\"\")\r\n    } else {\r\n      nb.metadata.language_info.get.name\r\n    }\r\n  }\r\n```\r\nit works now!"}}
{"actor":{"display_login":"fsxchen"}}