{"action":"created","comment":{"url":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/pulls/comments/210997496","pull_request_review_id":147336902,"id":210997496,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMDk5NzQ5Ng==","diff_hunk":"@@ -110,13 +143,27 @@ export class TableOfContents extends Widget {\n     });\n   }\n \n+  get generator() {\n+    if (this._current) {\n+      return this._current.generator;\n+    }\n+    return null;\n+  }\n+\n   /**\n    * Rerender after showing.\n    */\n   protected onAfterShow(msg: Message): void {\n     this.update();\n   }\n \n+  set notebookMetadata(value: [string, any]) {","path":"src/toc.tsx","position":107,"original_position":107,"commit_id":"23c3b2ffd147c93fc9248f438bf3c6f2547a148e","original_commit_id":"a5452e51cb097eab0c60c6ce956bd4c305d5ac4e","user":{"login":"zuoyuanh","id":15898408,"node_id":"MDQ6VXNlcjE1ODk4NDA4","avatar_url":"https://avatars1.githubusercontent.com/u/15898408?v=4","gravatar_id":"","url":"https://api.github.com/users/zuoyuanh","html_url":"https://github.com/zuoyuanh","followers_url":"https://api.github.com/users/zuoyuanh/followers","following_url":"https://api.github.com/users/zuoyuanh/following{/other_user}","gists_url":"https://api.github.com/users/zuoyuanh/gists{/gist_id}","starred_url":"https://api.github.com/users/zuoyuanh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zuoyuanh/subscriptions","organizations_url":"https://api.github.com/users/zuoyuanh/orgs","repos_url":"https://api.github.com/users/zuoyuanh/repos","events_url":"https://api.github.com/users/zuoyuanh/events{/privacy}","received_events_url":"https://api.github.com/users/zuoyuanh/received_events","type":"User","site_admin":false},"body":"These metadata just records what toolbar button user toggled (for example, if they toggle code cells off, next time they will not see the code cells in the document by default). I used to think of storing these data in LayoutRestorer or the user settings of the JupyterLab, but the reason that made me stored them in the notebook metadata in the end is these settings varies in different notebooks. Users might have code cells toggled on in one notebook but toggled off in another notebook.","created_at":"2018-08-17T18:34:25Z","updated_at":"2018-08-17T18:34:25Z","html_url":"https://github.com/jupyterlab/jupyterlab-toc/pull/34#discussion_r210997496","pull_request_url":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/pulls/34","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/pulls/comments/210997496"},"html":{"href":"https://github.com/jupyterlab/jupyterlab-toc/pull/34#discussion_r210997496"},"pull_request":{"href":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/pulls/34"}},"in_reply_to_id":210938727},"pull_request":{"url":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/pulls/34","id":206257579,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA2MjU3NTc5","html_url":"https://github.com/jupyterlab/jupyterlab-toc/pull/34","diff_url":"https://github.com/jupyterlab/jupyterlab-toc/pull/34.diff","patch_url":"https://github.com/jupyterlab/jupyterlab-toc/pull/34.patch","issue_url":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/issues/34","number":34,"state":"open","locked":false,"title":"added new features to toc","user":{"login":"zuoyuanh","id":15898408,"node_id":"MDQ6VXNlcjE1ODk4NDA4","avatar_url":"https://avatars1.githubusercontent.com/u/15898408?v=4","gravatar_id":"","url":"https://api.github.com/users/zuoyuanh","html_url":"https://github.com/zuoyuanh","followers_url":"https://api.github.com/users/zuoyuanh/followers","following_url":"https://api.github.com/users/zuoyuanh/following{/other_user}","gists_url":"https://api.github.com/users/zuoyuanh/gists{/gist_id}","starred_url":"https://api.github.com/users/zuoyuanh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zuoyuanh/subscriptions","organizations_url":"https://api.github.com/users/zuoyuanh/orgs","repos_url":"https://api.github.com/users/zuoyuanh/repos","events_url":"https://api.github.com/users/zuoyuanh/events{/privacy}","received_events_url":"https://api.github.com/users/zuoyuanh/received_events","type":"User","site_admin":false},"body":"Add new features (such as auto-numbering, show/hide markdown text, code and raw cells) to the current version of toc. ","created_at":"2018-08-05T21:01:41Z","updated_at":"2018-08-17T18:34:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cca35e216455e4ad0cd350c360dee28f8fbdcdbe","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/pulls/34/commits","review_comments_url":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/pulls/34/comments","review_comment_url":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/issues/34/comments","statuses_url":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/statuses/23c3b2ffd147c93fc9248f438bf3c6f2547a148e","head":{"label":"zuoyuanh:master","ref":"master","sha":"23c3b2ffd147c93fc9248f438bf3c6f2547a148e","user":{"login":"zuoyuanh","id":15898408,"node_id":"MDQ6VXNlcjE1ODk4NDA4","avatar_url":"https://avatars1.githubusercontent.com/u/15898408?v=4","gravatar_id":"","url":"https://api.github.com/users/zuoyuanh","html_url":"https://github.com/zuoyuanh","followers_url":"https://api.github.com/users/zuoyuanh/followers","following_url":"https://api.github.com/users/zuoyuanh/following{/other_user}","gists_url":"https://api.github.com/users/zuoyuanh/gists{/gist_id}","starred_url":"https://api.github.com/users/zuoyuanh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zuoyuanh/subscriptions","organizations_url":"https://api.github.com/users/zuoyuanh/orgs","repos_url":"https://api.github.com/users/zuoyuanh/repos","events_url":"https://api.github.com/users/zuoyuanh/events{/privacy}","received_events_url":"https://api.github.com/users/zuoyuanh/received_events","type":"User","site_admin":false},"repo":{"id":141634646,"node_id":"MDEwOlJlcG9zaXRvcnkxNDE2MzQ2NDY=","name":"jupyterlab-toc","full_name":"zuoyuanh/jupyterlab-toc","owner":{"login":"zuoyuanh","id":15898408,"node_id":"MDQ6VXNlcjE1ODk4NDA4","avatar_url":"https://avatars1.githubusercontent.com/u/15898408?v=4","gravatar_id":"","url":"https://api.github.com/users/zuoyuanh","html_url":"https://github.com/zuoyuanh","followers_url":"https://api.github.com/users/zuoyuanh/followers","following_url":"https://api.github.com/users/zuoyuanh/following{/other_user}","gists_url":"https://api.github.com/users/zuoyuanh/gists{/gist_id}","starred_url":"https://api.github.com/users/zuoyuanh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zuoyuanh/subscriptions","organizations_url":"https://api.github.com/users/zuoyuanh/orgs","repos_url":"https://api.github.com/users/zuoyuanh/repos","events_url":"https://api.github.com/users/zuoyuanh/events{/privacy}","received_events_url":"https://api.github.com/users/zuoyuanh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zuoyuanh/jupyterlab-toc","description":"Table of Contents extension for JupyterLab","fork":true,"url":"https://api.github.com/repos/zuoyuanh/jupyterlab-toc","forks_url":"https://api.github.com/repos/zuoyuanh/jupyterlab-toc/forks","keys_url":"https://api.github.com/repos/zuoyuanh/jupyterlab-toc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zuoyuanh/jupyterlab-toc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zuoyuanh/jupyterlab-toc/teams","hooks_url":"https://api.github.com/repos/zuoyuanh/jupyterlab-toc/hooks","issue_events_url":"https://api.github.com/repos/zuoyuanh/jupyterlab-toc/issues/events{/number}","events_url":"https://api.github.com/repos/zuoyuanh/jupyterlab-toc/events","assignees_url":"https://api.github.com/repos/zuoyuanh/jupyterlab-toc/assignees{/user}","branches_url":"https://api.github.com/repos/zuoyuanh/jupyterlab-toc/branches{/branch}","tags_url":"https://api.github.com/repos/zuoyuanh/jupyterlab-toc/tags","blobs_url":"https://api.github.com/repos/zuoyuanh/jupyterlab-toc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zuoyuanh/jupyterlab-toc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zuoyuanh/jupyterlab-toc/git/refs{/sha}","trees_url":"https://api.github.com/repos/zuoyuanh/jupyterlab-toc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zuoyuanh/jupyterlab-toc/statuses/{sha}","languages_url":"https://api.github.com/repos/zuoyuanh/jupyterlab-toc/languages","stargazers_url":"https://api.github.com/repos/zuoyuanh/jupyterlab-toc/stargazers","contributors_url":"https://api.github.com/repos/zuoyuanh/jupyterlab-toc/contributors","subscribers_url":"https://api.github.com/repos/zuoyuanh/jupyterlab-toc/subscribers","subscription_url":"https://api.github.com/repos/zuoyuanh/jupyterlab-toc/subscription","commits_url":"https://api.github.com/repos/zuoyuanh/jupyterlab-toc/commits{/sha}","git_commits_url":"https://api.github.com/repos/zuoyuanh/jupyterlab-toc/git/commits{/sha}","comments_url":"https://api.github.com/repos/zuoyuanh/jupyterlab-toc/comments{/number}","issue_comment_url":"https://api.github.com/repos/zuoyuanh/jupyterlab-toc/issues/comments{/number}","contents_url":"https://api.github.com/repos/zuoyuanh/jupyterlab-toc/contents/{+path}","compare_url":"https://api.github.com/repos/zuoyuanh/jupyterlab-toc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zuoyuanh/jupyterlab-toc/merges","archive_url":"https://api.github.com/repos/zuoyuanh/jupyterlab-toc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zuoyuanh/jupyterlab-toc/downloads","issues_url":"https://api.github.com/repos/zuoyuanh/jupyterlab-toc/issues{/number}","pulls_url":"https://api.github.com/repos/zuoyuanh/jupyterlab-toc/pulls{/number}","milestones_url":"https://api.github.com/repos/zuoyuanh/jupyterlab-toc/milestones{/number}","notifications_url":"https://api.github.com/repos/zuoyuanh/jupyterlab-toc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zuoyuanh/jupyterlab-toc/labels{/name}","releases_url":"https://api.github.com/repos/zuoyuanh/jupyterlab-toc/releases{/id}","deployments_url":"https://api.github.com/repos/zuoyuanh/jupyterlab-toc/deployments","created_at":"2018-07-19T21:56:17Z","updated_at":"2018-08-17T17:34:34Z","pushed_at":"2018-08-17T17:34:32Z","git_url":"git://github.com/zuoyuanh/jupyterlab-toc.git","ssh_url":"git@github.com:zuoyuanh/jupyterlab-toc.git","clone_url":"https://github.com/zuoyuanh/jupyterlab-toc.git","svn_url":"https://github.com/zuoyuanh/jupyterlab-toc","homepage":null,"size":2840,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jupyterlab:master","ref":"master","sha":"e9b2d5b6a7c2c956e3086daefebb21f8f2fcd020","user":{"login":"jupyterlab","id":22800682,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyODAwNjgy","avatar_url":"https://avatars1.githubusercontent.com/u/22800682?v=4","gravatar_id":"","url":"https://api.github.com/users/jupyterlab","html_url":"https://github.com/jupyterlab","followers_url":"https://api.github.com/users/jupyterlab/followers","following_url":"https://api.github.com/users/jupyterlab/following{/other_user}","gists_url":"https://api.github.com/users/jupyterlab/gists{/gist_id}","starred_url":"https://api.github.com/users/jupyterlab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jupyterlab/subscriptions","organizations_url":"https://api.github.com/users/jupyterlab/orgs","repos_url":"https://api.github.com/users/jupyterlab/repos","events_url":"https://api.github.com/users/jupyterlab/events{/privacy}","received_events_url":"https://api.github.com/users/jupyterlab/received_events","type":"Organization","site_admin":false},"repo":{"id":124914240,"node_id":"MDEwOlJlcG9zaXRvcnkxMjQ5MTQyNDA=","name":"jupyterlab-toc","full_name":"jupyterlab/jupyterlab-toc","owner":{"login":"jupyterlab","id":22800682,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyODAwNjgy","avatar_url":"https://avatars1.githubusercontent.com/u/22800682?v=4","gravatar_id":"","url":"https://api.github.com/users/jupyterlab","html_url":"https://github.com/jupyterlab","followers_url":"https://api.github.com/users/jupyterlab/followers","following_url":"https://api.github.com/users/jupyterlab/following{/other_user}","gists_url":"https://api.github.com/users/jupyterlab/gists{/gist_id}","starred_url":"https://api.github.com/users/jupyterlab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jupyterlab/subscriptions","organizations_url":"https://api.github.com/users/jupyterlab/orgs","repos_url":"https://api.github.com/users/jupyterlab/repos","events_url":"https://api.github.com/users/jupyterlab/events{/privacy}","received_events_url":"https://api.github.com/users/jupyterlab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jupyterlab/jupyterlab-toc","description":"Table of Contents extension for JupyterLab","fork":false,"url":"https://api.github.com/repos/jupyterlab/jupyterlab-toc","forks_url":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/forks","keys_url":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/teams","hooks_url":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/hooks","issue_events_url":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/issues/events{/number}","events_url":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/events","assignees_url":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/assignees{/user}","branches_url":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/branches{/branch}","tags_url":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/tags","blobs_url":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/git/refs{/sha}","trees_url":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/statuses/{sha}","languages_url":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/languages","stargazers_url":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/stargazers","contributors_url":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/contributors","subscribers_url":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/subscribers","subscription_url":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/subscription","commits_url":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/commits{/sha}","git_commits_url":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/git/commits{/sha}","comments_url":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/comments{/number}","issue_comment_url":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/issues/comments{/number}","contents_url":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/contents/{+path}","compare_url":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/merges","archive_url":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/downloads","issues_url":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/issues{/number}","pulls_url":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/pulls{/number}","milestones_url":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/milestones{/number}","notifications_url":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/labels{/name}","releases_url":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/releases{/id}","deployments_url":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/deployments","created_at":"2018-03-12T15:55:19Z","updated_at":"2018-08-15T03:26:15Z","pushed_at":"2018-08-17T17:34:33Z","git_url":"git://github.com/jupyterlab/jupyterlab-toc.git","ssh_url":"git@github.com:jupyterlab/jupyterlab-toc.git","clone_url":"https://github.com/jupyterlab/jupyterlab-toc.git","svn_url":"https://github.com/jupyterlab/jupyterlab-toc","homepage":null,"size":2561,"stargazers_count":117,"watchers_count":117,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":13,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":8,"open_issues":13,"watchers":117,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/pulls/34"},"html":{"href":"https://github.com/jupyterlab/jupyterlab-toc/pull/34"},"issue":{"href":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/issues/34"},"comments":{"href":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/issues/34/comments"},"review_comments":{"href":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/pulls/34/comments"},"review_comment":{"href":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/pulls/34/commits"},"statuses":{"href":"https://api.github.com/repos/jupyterlab/jupyterlab-toc/statuses/23c3b2ffd147c93fc9248f438bf3c6f2547a148e"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"zuoyuanh"}}