{"action":"created","comment":{"url":"https://api.github.com/repos/jupyter/jupyter-js-cells/pulls/comments/43838543","id":43838543,"diff_hunk":"@@ -1,3 +1,166 @@\n // Copyright (c) Jupyter Development Team.\n // Distributed under the terms of the Modified BSD License.\n 'use-strict';\n+\n+import {\n+  IInputAreaViewModel\n+} from 'jupyter-js-input-area';\n+\n+import {\n+  IOutputAreaViewModel\n+} from 'jupyter-js-output-area';\n+\n+import {\n+  IObservableList\n+} from 'phosphor-observablelist';\n+\n+import {\n+  Widget\n+} from 'phosphor-widget';\n+\n+import './index.css';\n+\n+\n+/**\n+ * An enum which describes the type of cell.\n+ */\n+enum CellType {\n+  /**\n+   * The cell contains code input.\n+   */\n+  Code,\n+\n+  /**\n+   * The cell contains markdown.\n+   */\n+  Markdown,\n+\n+  /**\n+   * The cell contains raw text.\n+   */\n+  Raw\n+}\n+\n+\n+/**\n+ * The arguments object emitted with the `stateChanged` signal.\n+ */\n+export\n+interface ICellChangedArgs<T> {\n+  name: string,\n+  oldValue: T;\n+  newValue: T;\n+}\n+\n+\n+/**\n+ * The definition of a model object for a base cell.\n+ */\n+interface IBaseCellViewModel {\n+\n+  /**\n+   * The type of cell.\n+   */\n+  cellType: CellType;\n+\n+  /**\n+   * Tags applied to the cell.\n+   */\n+  tags?: IObservableList<string>;","path":"src/index.ts","position":69,"original_position":69,"commit_id":"1c4f4451ffa5cb01f3e5a3af4fdf4c932cee08b9","original_commit_id":"1c4f4451ffa5cb01f3e5a3af4fdf4c932cee08b9","user":{"login":"sccolbert","id":137289,"avatar_url":"https://avatars.githubusercontent.com/u/137289?v=3","gravatar_id":"","url":"https://api.github.com/users/sccolbert","html_url":"https://github.com/sccolbert","followers_url":"https://api.github.com/users/sccolbert/followers","following_url":"https://api.github.com/users/sccolbert/following{/other_user}","gists_url":"https://api.github.com/users/sccolbert/gists{/gist_id}","starred_url":"https://api.github.com/users/sccolbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sccolbert/subscriptions","organizations_url":"https://api.github.com/users/sccolbert/orgs","repos_url":"https://api.github.com/users/sccolbert/repos","events_url":"https://api.github.com/users/sccolbert/events{/privacy}","received_events_url":"https://api.github.com/users/sccolbert/received_events","type":"User","site_admin":false},"body":"That would need to be asserted dynamically at runtime.","created_at":"2015-11-04T03:05:42Z","updated_at":"2015-11-04T03:05:42Z","html_url":"https://github.com/jupyter/jupyter-js-cells/pull/2#discussion_r43838543","pull_request_url":"https://api.github.com/repos/jupyter/jupyter-js-cells/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/jupyter/jupyter-js-cells/pulls/comments/43838543"},"html":{"href":"https://github.com/jupyter/jupyter-js-cells/pull/2#discussion_r43838543"},"pull_request":{"href":"https://api.github.com/repos/jupyter/jupyter-js-cells/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/jupyter/jupyter-js-cells/pulls/2","id":49634482,"html_url":"https://github.com/jupyter/jupyter-js-cells/pull/2","diff_url":"https://github.com/jupyter/jupyter-js-cells/pull/2.diff","patch_url":"https://github.com/jupyter/jupyter-js-cells/pull/2.patch","issue_url":"https://api.github.com/repos/jupyter/jupyter-js-cells/issues/2","number":2,"state":"open","locked":false,"title":"Add an initial cell model","user":{"login":"blink1073","id":2096628,"avatar_url":"https://avatars.githubusercontent.com/u/2096628?v=3","gravatar_id":"","url":"https://api.github.com/users/blink1073","html_url":"https://github.com/blink1073","followers_url":"https://api.github.com/users/blink1073/followers","following_url":"https://api.github.com/users/blink1073/following{/other_user}","gists_url":"https://api.github.com/users/blink1073/gists{/gist_id}","starred_url":"https://api.github.com/users/blink1073/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blink1073/subscriptions","organizations_url":"https://api.github.com/users/blink1073/orgs","repos_url":"https://api.github.com/users/blink1073/repos","events_url":"https://api.github.com/users/blink1073/events{/privacy}","received_events_url":"https://api.github.com/users/blink1073/received_events","type":"User","site_admin":false},"body":"ping @ellisonbg @sccolbert @jasongrout @Carreau ","created_at":"2015-11-04T00:49:19Z","updated_at":"2015-11-04T03:05:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e69de535ba9ed4a22cce077df0596edfd11cde47","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jupyter/jupyter-js-cells/pulls/2/commits","review_comments_url":"https://api.github.com/repos/jupyter/jupyter-js-cells/pulls/2/comments","review_comment_url":"https://api.github.com/repos/jupyter/jupyter-js-cells/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jupyter/jupyter-js-cells/issues/2/comments","statuses_url":"https://api.github.com/repos/jupyter/jupyter-js-cells/statuses/1c4f4451ffa5cb01f3e5a3af4fdf4c932cee08b9","head":{"label":"blink1073:cell-model","ref":"cell-model","sha":"1c4f4451ffa5cb01f3e5a3af4fdf4c932cee08b9","user":{"login":"blink1073","id":2096628,"avatar_url":"https://avatars.githubusercontent.com/u/2096628?v=3","gravatar_id":"","url":"https://api.github.com/users/blink1073","html_url":"https://github.com/blink1073","followers_url":"https://api.github.com/users/blink1073/followers","following_url":"https://api.github.com/users/blink1073/following{/other_user}","gists_url":"https://api.github.com/users/blink1073/gists{/gist_id}","starred_url":"https://api.github.com/users/blink1073/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blink1073/subscriptions","organizations_url":"https://api.github.com/users/blink1073/orgs","repos_url":"https://api.github.com/users/blink1073/repos","events_url":"https://api.github.com/users/blink1073/events{/privacy}","received_events_url":"https://api.github.com/users/blink1073/received_events","type":"User","site_admin":false},"repo":{"id":45501275,"name":"jupyter-js-cells","full_name":"blink1073/jupyter-js-cells","owner":{"login":"blink1073","id":2096628,"avatar_url":"https://avatars.githubusercontent.com/u/2096628?v=3","gravatar_id":"","url":"https://api.github.com/users/blink1073","html_url":"https://github.com/blink1073","followers_url":"https://api.github.com/users/blink1073/followers","following_url":"https://api.github.com/users/blink1073/following{/other_user}","gists_url":"https://api.github.com/users/blink1073/gists{/gist_id}","starred_url":"https://api.github.com/users/blink1073/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blink1073/subscriptions","organizations_url":"https://api.github.com/users/blink1073/orgs","repos_url":"https://api.github.com/users/blink1073/repos","events_url":"https://api.github.com/users/blink1073/events{/privacy}","received_events_url":"https://api.github.com/users/blink1073/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/blink1073/jupyter-js-cells","description":"Javascript APIs for Jupyter cells","fork":true,"url":"https://api.github.com/repos/blink1073/jupyter-js-cells","forks_url":"https://api.github.com/repos/blink1073/jupyter-js-cells/forks","keys_url":"https://api.github.com/repos/blink1073/jupyter-js-cells/keys{/key_id}","collaborators_url":"https://api.github.com/repos/blink1073/jupyter-js-cells/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/blink1073/jupyter-js-cells/teams","hooks_url":"https://api.github.com/repos/blink1073/jupyter-js-cells/hooks","issue_events_url":"https://api.github.com/repos/blink1073/jupyter-js-cells/issues/events{/number}","events_url":"https://api.github.com/repos/blink1073/jupyter-js-cells/events","assignees_url":"https://api.github.com/repos/blink1073/jupyter-js-cells/assignees{/user}","branches_url":"https://api.github.com/repos/blink1073/jupyter-js-cells/branches{/branch}","tags_url":"https://api.github.com/repos/blink1073/jupyter-js-cells/tags","blobs_url":"https://api.github.com/repos/blink1073/jupyter-js-cells/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/blink1073/jupyter-js-cells/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/blink1073/jupyter-js-cells/git/refs{/sha}","trees_url":"https://api.github.com/repos/blink1073/jupyter-js-cells/git/trees{/sha}","statuses_url":"https://api.github.com/repos/blink1073/jupyter-js-cells/statuses/{sha}","languages_url":"https://api.github.com/repos/blink1073/jupyter-js-cells/languages","stargazers_url":"https://api.github.com/repos/blink1073/jupyter-js-cells/stargazers","contributors_url":"https://api.github.com/repos/blink1073/jupyter-js-cells/contributors","subscribers_url":"https://api.github.com/repos/blink1073/jupyter-js-cells/subscribers","subscription_url":"https://api.github.com/repos/blink1073/jupyter-js-cells/subscription","commits_url":"https://api.github.com/repos/blink1073/jupyter-js-cells/commits{/sha}","git_commits_url":"https://api.github.com/repos/blink1073/jupyter-js-cells/git/commits{/sha}","comments_url":"https://api.github.com/repos/blink1073/jupyter-js-cells/comments{/number}","issue_comment_url":"https://api.github.com/repos/blink1073/jupyter-js-cells/issues/comments{/number}","contents_url":"https://api.github.com/repos/blink1073/jupyter-js-cells/contents/{+path}","compare_url":"https://api.github.com/repos/blink1073/jupyter-js-cells/compare/{base}...{head}","merges_url":"https://api.github.com/repos/blink1073/jupyter-js-cells/merges","archive_url":"https://api.github.com/repos/blink1073/jupyter-js-cells/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/blink1073/jupyter-js-cells/downloads","issues_url":"https://api.github.com/repos/blink1073/jupyter-js-cells/issues{/number}","pulls_url":"https://api.github.com/repos/blink1073/jupyter-js-cells/pulls{/number}","milestones_url":"https://api.github.com/repos/blink1073/jupyter-js-cells/milestones{/number}","notifications_url":"https://api.github.com/repos/blink1073/jupyter-js-cells/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/blink1073/jupyter-js-cells/labels{/name}","releases_url":"https://api.github.com/repos/blink1073/jupyter-js-cells/releases{/id}","created_at":"2015-11-03T22:57:41Z","updated_at":"2015-09-20T16:32:57Z","pushed_at":"2015-11-04T01:24:08Z","git_url":"git://github.com/blink1073/jupyter-js-cells.git","ssh_url":"git@github.com:blink1073/jupyter-js-cells.git","clone_url":"https://github.com/blink1073/jupyter-js-cells.git","svn_url":"https://github.com/blink1073/jupyter-js-cells","homepage":null,"size":90,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jupyter:master","ref":"master","sha":"4625e3d2bc286db4eca831f074d1b68f3b3e119b","user":{"login":"jupyter","id":7388996,"avatar_url":"https://avatars.githubusercontent.com/u/7388996?v=3","gravatar_id":"","url":"https://api.github.com/users/jupyter","html_url":"https://github.com/jupyter","followers_url":"https://api.github.com/users/jupyter/followers","following_url":"https://api.github.com/users/jupyter/following{/other_user}","gists_url":"https://api.github.com/users/jupyter/gists{/gist_id}","starred_url":"https://api.github.com/users/jupyter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jupyter/subscriptions","organizations_url":"https://api.github.com/users/jupyter/orgs","repos_url":"https://api.github.com/users/jupyter/repos","events_url":"https://api.github.com/users/jupyter/events{/privacy}","received_events_url":"https://api.github.com/users/jupyter/received_events","type":"Organization","site_admin":false},"repo":{"id":39586588,"name":"jupyter-js-cells","full_name":"jupyter/jupyter-js-cells","owner":{"login":"jupyter","id":7388996,"avatar_url":"https://avatars.githubusercontent.com/u/7388996?v=3","gravatar_id":"","url":"https://api.github.com/users/jupyter","html_url":"https://github.com/jupyter","followers_url":"https://api.github.com/users/jupyter/followers","following_url":"https://api.github.com/users/jupyter/following{/other_user}","gists_url":"https://api.github.com/users/jupyter/gists{/gist_id}","starred_url":"https://api.github.com/users/jupyter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jupyter/subscriptions","organizations_url":"https://api.github.com/users/jupyter/orgs","repos_url":"https://api.github.com/users/jupyter/repos","events_url":"https://api.github.com/users/jupyter/events{/privacy}","received_events_url":"https://api.github.com/users/jupyter/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jupyter/jupyter-js-cells","description":"Javascript APIs for Jupyter cells","fork":false,"url":"https://api.github.com/repos/jupyter/jupyter-js-cells","forks_url":"https://api.github.com/repos/jupyter/jupyter-js-cells/forks","keys_url":"https://api.github.com/repos/jupyter/jupyter-js-cells/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jupyter/jupyter-js-cells/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jupyter/jupyter-js-cells/teams","hooks_url":"https://api.github.com/repos/jupyter/jupyter-js-cells/hooks","issue_events_url":"https://api.github.com/repos/jupyter/jupyter-js-cells/issues/events{/number}","events_url":"https://api.github.com/repos/jupyter/jupyter-js-cells/events","assignees_url":"https://api.github.com/repos/jupyter/jupyter-js-cells/assignees{/user}","branches_url":"https://api.github.com/repos/jupyter/jupyter-js-cells/branches{/branch}","tags_url":"https://api.github.com/repos/jupyter/jupyter-js-cells/tags","blobs_url":"https://api.github.com/repos/jupyter/jupyter-js-cells/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jupyter/jupyter-js-cells/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jupyter/jupyter-js-cells/git/refs{/sha}","trees_url":"https://api.github.com/repos/jupyter/jupyter-js-cells/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jupyter/jupyter-js-cells/statuses/{sha}","languages_url":"https://api.github.com/repos/jupyter/jupyter-js-cells/languages","stargazers_url":"https://api.github.com/repos/jupyter/jupyter-js-cells/stargazers","contributors_url":"https://api.github.com/repos/jupyter/jupyter-js-cells/contributors","subscribers_url":"https://api.github.com/repos/jupyter/jupyter-js-cells/subscribers","subscription_url":"https://api.github.com/repos/jupyter/jupyter-js-cells/subscription","commits_url":"https://api.github.com/repos/jupyter/jupyter-js-cells/commits{/sha}","git_commits_url":"https://api.github.com/repos/jupyter/jupyter-js-cells/git/commits{/sha}","comments_url":"https://api.github.com/repos/jupyter/jupyter-js-cells/comments{/number}","issue_comment_url":"https://api.github.com/repos/jupyter/jupyter-js-cells/issues/comments{/number}","contents_url":"https://api.github.com/repos/jupyter/jupyter-js-cells/contents/{+path}","compare_url":"https://api.github.com/repos/jupyter/jupyter-js-cells/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jupyter/jupyter-js-cells/merges","archive_url":"https://api.github.com/repos/jupyter/jupyter-js-cells/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jupyter/jupyter-js-cells/downloads","issues_url":"https://api.github.com/repos/jupyter/jupyter-js-cells/issues{/number}","pulls_url":"https://api.github.com/repos/jupyter/jupyter-js-cells/pulls{/number}","milestones_url":"https://api.github.com/repos/jupyter/jupyter-js-cells/milestones{/number}","notifications_url":"https://api.github.com/repos/jupyter/jupyter-js-cells/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jupyter/jupyter-js-cells/labels{/name}","releases_url":"https://api.github.com/repos/jupyter/jupyter-js-cells/releases{/id}","created_at":"2015-07-23T19:07:09Z","updated_at":"2015-11-04T00:48:39Z","pushed_at":"2015-11-04T01:24:08Z","git_url":"git://github.com/jupyter/jupyter-js-cells.git","ssh_url":"git@github.com:jupyter/jupyter-js-cells.git","clone_url":"https://github.com/jupyter/jupyter-js-cells.git","svn_url":"https://github.com/jupyter/jupyter-js-cells","homepage":null,"size":169,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jupyter/jupyter-js-cells/pulls/2"},"html":{"href":"https://github.com/jupyter/jupyter-js-cells/pull/2"},"issue":{"href":"https://api.github.com/repos/jupyter/jupyter-js-cells/issues/2"},"comments":{"href":"https://api.github.com/repos/jupyter/jupyter-js-cells/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/jupyter/jupyter-js-cells/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/jupyter/jupyter-js-cells/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jupyter/jupyter-js-cells/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/jupyter/jupyter-js-cells/statuses/1c4f4451ffa5cb01f3e5a3af4fdf4c932cee08b9"}}}}