{"action":"created","issue":{"url":"https://api.github.com/repos/ipython-contrib/IPython-notebook-extensions/issues/430","labels_url":"https://api.github.com/repos/ipython-contrib/IPython-notebook-extensions/issues/430/labels{/name}","comments_url":"https://api.github.com/repos/ipython-contrib/IPython-notebook-extensions/issues/430/comments","events_url":"https://api.github.com/repos/ipython-contrib/IPython-notebook-extensions/issues/430/events","html_url":"https://github.com/ipython-contrib/IPython-notebook-extensions/pull/430","id":120647147,"number":430,"title":"Toc2 - some new features for toc extension","user":{"login":"jfbercher","id":7596356,"avatar_url":"https://avatars.githubusercontent.com/u/7596356?v=3","gravatar_id":"","url":"https://api.github.com/users/jfbercher","html_url":"https://github.com/jfbercher","followers_url":"https://api.github.com/users/jfbercher/followers","following_url":"https://api.github.com/users/jfbercher/following{/other_user}","gists_url":"https://api.github.com/users/jfbercher/gists{/gist_id}","starred_url":"https://api.github.com/users/jfbercher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfbercher/subscriptions","organizations_url":"https://api.github.com/users/jfbercher/orgs","repos_url":"https://api.github.com/users/jfbercher/repos","events_url":"https://api.github.com/users/jfbercher/events{/privacy}","received_events_url":"https://api.github.com/users/jfbercher/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-06T17:31:10Z","updated_at":"2015-12-06T17:48:13Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ipython-contrib/IPython-notebook-extensions/pulls/430","html_url":"https://github.com/ipython-contrib/IPython-notebook-extensions/pull/430","diff_url":"https://github.com/ipython-contrib/IPython-notebook-extensions/pull/430.diff","patch_url":"https://github.com/ipython-contrib/IPython-notebook-extensions/pull/430.patch"},"body":"# Table of Contents (2)\r\n\r\nThis is an update of \"Table of Contents\" extension, with the following new features:\r\n- The toc window can now be moved on screen. The position and states (that is 'collapsed' and 'hidden' states) are remembered (actually stored in the notebook's metadata) and restored on the next session.\r\n- Numerotation - The different headers in the notebook can be automatically numbered (with automatic update)\r\n- Toc cell - A \"toc cell\" can be created at top of the notebook and its contents automatically updated. This cell can be moved elsewhere in the notebook andd its position will be remembered and restored. \r\n\r\nTwo links have been added to the toc window in order to toggle numerotation and toc cell. \r\n   - the \"n\" link toggles automatic numerotation of all header lines\r\n   - the \"t\" link toggles a toc cell in the notebook, which contains the actual table of contents, possibly with the numerotation of the different sections. \r\n\r\n- Inital configuration (applied when creating a new notebook) can be specified in the /nbextensions tab. Thenafter, configuration will be stored in the notebook itself. \r\n\r\n# Testing \r\n- At loading of the notebook, loading of the configuration and initial rendering of the table of contents was fired on the event \"notebook_loaded.Notebook\". Curiously, it happened that this event was either not always fired or detected. Thus I rely here on a combination of  \"notebook_loaded.Notebook\" and \"kernel_ready.Kernel\" instead. Because of that, I propose to not overwrite toc and I put the extension in \"testing\" to avoid any possible/unknown side effect, though it works nicely for me. \r\n- The present extension also includes a small workaround for https://github.com/ipython-contrib/IPython-notebook-extensions/issues/429\r\n\r\nPlease make issues (or updates/PR) as needed"},"comment":{"url":"https://api.github.com/repos/ipython-contrib/IPython-notebook-extensions/issues/comments/162331624","html_url":"https://github.com/ipython-contrib/IPython-notebook-extensions/pull/430#issuecomment-162331624","issue_url":"https://api.github.com/repos/ipython-contrib/IPython-notebook-extensions/issues/430","id":162331624,"user":{"login":"JanSchulz","id":890156,"avatar_url":"https://avatars.githubusercontent.com/u/890156?v=3","gravatar_id":"","url":"https://api.github.com/users/JanSchulz","html_url":"https://github.com/JanSchulz","followers_url":"https://api.github.com/users/JanSchulz/followers","following_url":"https://api.github.com/users/JanSchulz/following{/other_user}","gists_url":"https://api.github.com/users/JanSchulz/gists{/gist_id}","starred_url":"https://api.github.com/users/JanSchulz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JanSchulz/subscriptions","organizations_url":"https://api.github.com/users/JanSchulz/orgs","repos_url":"https://api.github.com/users/JanSchulz/repos","events_url":"https://api.github.com/users/JanSchulz/events{/privacy}","received_events_url":"https://api.github.com/users/JanSchulz/received_events","type":"User","site_admin":false},"created_at":"2015-12-06T17:48:13Z","updated_at":"2015-12-06T17:48:13Z","body":"> Toc cell - A \"toc cell\" can be created at top of the notebook and its contents automatically updated. This cell can be moved elsewhere in the notebook andd its position will be remembered and restored.\r\n\r\nJust a quick question before I start reading the code: Is that available in nbconvert?"}}