{"action":"created","issue":{"url":"https://api.github.com/repos/cuthbertLab/music21/issues/326","repository_url":"https://api.github.com/repos/cuthbertLab/music21","labels_url":"https://api.github.com/repos/cuthbertLab/music21/issues/326/labels{/name}","comments_url":"https://api.github.com/repos/cuthbertLab/music21/issues/326/comments","events_url":"https://api.github.com/repos/cuthbertLab/music21/issues/326/events","html_url":"https://github.com/cuthbertLab/music21/pull/326","id":355162076,"node_id":"MDExOlB1bGxSZXF1ZXN0MjExNzU0MzU4","number":326,"title":"Added IPython .show('osmd') using OpenSheetMusicDisplay","user":{"login":"supersational","id":11251397,"node_id":"MDQ6VXNlcjExMjUxMzk3","avatar_url":"https://avatars2.githubusercontent.com/u/11251397?v=4","gravatar_id":"","url":"https://api.github.com/users/supersational","html_url":"https://github.com/supersational","followers_url":"https://api.github.com/users/supersational/followers","following_url":"https://api.github.com/users/supersational/following{/other_user}","gists_url":"https://api.github.com/users/supersational/gists{/gist_id}","starred_url":"https://api.github.com/users/supersational/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/supersational/subscriptions","organizations_url":"https://api.github.com/users/supersational/orgs","repos_url":"https://api.github.com/users/supersational/repos","events_url":"https://api.github.com/users/supersational/events{/privacy}","received_events_url":"https://api.github.com/users/supersational/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-08-29T13:31:18Z","updated_at":"2018-08-29T20:56:26Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/cuthbertLab/music21/pulls/326","html_url":"https://github.com/cuthbertLab/music21/pull/326","diff_url":"https://github.com/cuthbertLab/music21/pull/326.diff","patch_url":"https://github.com/cuthbertLab/music21/pull/326.patch"},"body":"A proper version of the hack described here: [https://github.com/cuthbertLab/music21/issues/306](https://github.com/cuthbertLab/music21/issues/306)\r\n\r\nWithin an IPython notebook you can now use `score.show('osmd')` and have the score displayed inline.\r\n\r\nIssues:\r\n- Empty scores sometimes cause a Javascript error\r\n- Might want to generate a .html file if not in an IPython environment\r\n- conditional import of IPython needs adding/testing\r\n- Minor issue but if several scores are shown at the same time it might add an unnecessary amount of script tags in a JS race condition"},"comment":{"url":"https://api.github.com/repos/cuthbertLab/music21/issues/comments/417102967","html_url":"https://github.com/cuthbertLab/music21/pull/326#issuecomment-417102967","issue_url":"https://api.github.com/repos/cuthbertLab/music21/issues/326","id":417102967,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNzEwMjk2Nw==","user":{"login":"supersational","id":11251397,"node_id":"MDQ6VXNlcjExMjUxMzk3","avatar_url":"https://avatars2.githubusercontent.com/u/11251397?v=4","gravatar_id":"","url":"https://api.github.com/users/supersational","html_url":"https://github.com/supersational","followers_url":"https://api.github.com/users/supersational/followers","following_url":"https://api.github.com/users/supersational/following{/other_user}","gists_url":"https://api.github.com/users/supersational/gists{/gist_id}","starred_url":"https://api.github.com/users/supersational/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/supersational/subscriptions","organizations_url":"https://api.github.com/users/supersational/orgs","repos_url":"https://api.github.com/users/supersational/repos","events_url":"https://api.github.com/users/supersational/events{/privacy}","received_events_url":"https://api.github.com/users/supersational/received_events","type":"User","site_admin":false},"created_at":"2018-08-29T20:56:26Z","updated_at":"2018-08-29T20:56:26Z","author_association":"NONE","body":"Now moved to seperate module, seemed appropriate since we have additional .js files.\r\n\r\nI'm not sure what the convention for import errors are, but it should now ignore missing IPython until .show('osmd') is called."}}
{"actor":{"display_login":"supersational"}}