-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does notebook have the function of navigation in a sidebar ? #672
Comments
@minrk has a table of contents extension that might be what you are looking for: https://github.com/minrk/ipython_extensions#table-of-contents |
Thank you very much, @jhamrick. This extension doesn't seem to work in jupyter. I installed the extension by the following steps:
Then, I start a new I guess it is because
while the extension works with |
I haven't used @minrk 's table of contents, but we also have one that works with all versions of Jupyter: http://calicoproject.org/ICalico#Calico_Notebook_Extensions Here is a video: |
There's also a working version (including a dockable sidebar) at ipython-contrib/IPython-notebook-extensions |
I am using a table of contents that I found somewhere. It works very nicely, also with markdown.
In the next cell you put:
Although it works, it would be much nicer if there could be a stationary sidebar (that maybe will contain other things in the future), which has the table of contents. This would make it similar to the typical layout of a coding IDE. |
Thanks @jkokorian for the useful snippet!
|
@shoval Thank you~ Your code is very useful. |
@shoval Great! |
Not sure if anyone is still interested in this topic but I developed an open source stationary side bar. See https://github.com/vizmotion/jupyter-navigation. Feel free to use as you want. |
@vizmotion Thanks. very nice work. I've stared it. |
Glad you found it useful. If you don't mind let me know how you use it and if there are improvements I can make. |
If anyone is interested, I finally re-wrote the code for this sidebar navigation in a way that it is always present in Jupyter Notebook. This is a huge improvement over the snippet I wrote here a couple of years ago - the sidebar is resizable, items get added immediately when created and it fits better inside of the window. Please see: https://github.com/shoval/jupyter-navbar . I would appreciate your comments, bug reports, requests, etc. |
@shoval Your navbar it's really nice. Do you know if it's possible to have it via conda and/or pip? |
@shoval really good work. I like it ~~ |
@rpanai, the navbar is written in JavaScript, so it is a bit different than installing a Python package. I think it should be possible to install via conda, but I haven't found the time to do so yet. |
@shoval Thanks for the wonderful plugin. I have one problem. I usually have this line in my custom.css to make the notebook wider in the browser. |
With conda:conda install -c conda-forge jupyter_contrib_nbextensions With pip:pip install jupyter_contrib_nbextensions Enablejupyter nbextension enable toc2/main |
@Xiangyu-C , sorry for the very late response. I tried adding the rule: |
Moving averageNavigation buttontext |
Nice work. It help |
I usually use notebook to give reports on my experiments. My report is sometimes very long but well structured. The problem is that I have to use mouse wheel to switch between chapters, which is very time consuming.
Is there any way to make a navigation in a sidebar in which each chapter is corresponding to a
Heading
in aMarkdown
cell ? So I can skip to a chapter quickly.The text was updated successfully, but these errors were encountered: