I'm building a tutorial notebook, and I want the first cell to act as a TOC, linking to other cells in the notebook. so you could read the header, click a link and get to the cell of interest. Is this possible?
I searched this questions and came up with nothing, so it must be super trivial... :)
Thanks!
On master (1.0.dev) heading cell have an anchor if you click on it that you can reference. (only header cells) you can also have a look at this
Related
I am trying to write a custom inline row using Eureka but I couldn't do it by following the documentation in the Github page of the library.
Also I copy-pasted this answer but it throws a segmentation error. I also tried searching for tutorials on the internet to follow but there is none.
Can someone clearly and basically explain how can I do this?
See if this is the place you want to look into
Also, are you using this library just to do a collapsible cell? You can do that by yourself and that is really not hard & a lot of code to implement. Check out this exmaple. All you need is to define child cells and parent cells in a section and reload it with animation!
I know it's a long tutorial. You can probably skip the top half, and start reading from Expanding and Collapsing section. The basic idea is, a collapsible cell and the collapsed cell are within a section, and you have a variable per section of cells to remember if the section is expanded or not. When clicked on the first cell of the section, if it's already expanded, reduce the cell count to one and do a reload to this section using animation Fade. and vice versa. This Fade animation will produce the animation you want.
Jupyter allows to produce slides either via nbconvert or (even better) dynamically and within a notebook with RISE.
However, when I launch RISE on my notebook or create slides with nbconvert, it creates only a single (potentially huge) slide. I thought it would/could automatically split at every header lines, but it does not.
How can I split the notebook into different slides?
You need to bring in a specific tool that is not shown by default. In the notebook, go to
View > Cell Toolbar > Slideshow
and a drop-down menu now appears at the right end of each cell, showing a "slide label" (my terminology).
By default, the label is -, meaning that the cell is part of the same block than the cell above.
If you change the label to slide, the cell is now the first cell of a new slide. (new slide would probably be a better label indeed).
You will find other labels too that closely follow Reveal.js' way of working:
The subslide label correspond also to a new slide, but placed in a "vertical stack" so dear to Reveal.js. fragments are used for progressive display of the elements of a slide. skip cells are not displayed, and notes are for speaker notes.
This is a simple ergonomics question. There's an option in the editor Geany than enables the user to scroll past the last line displayed. This allows the user to, for example, bring the last line of code up to eye-level on a vertically-oriented display.
How can I do something similar in a Jupyter notebook? I don't want my head pointed downward all the time. How can I scroll past the last cell?
I'd expect the result to be someway comparable to using the Chromium extension More Page Space.
I was just looking for the same feature. I'm not sure if there is an official solution, but you can accomplish something similar to what you want by customizing the css. Try adding the following block to ~/.jupyter/custom/custom.css:
.end_space {
height: 75vh;
}
is there a way in ipython notebook to navigate between cells which are far apart? For example if I have a large notebook and I want to move from a cell near the top of the notebook and then back to one at the bottom. Can I do this? I was thinking there might be a "goto cell 23" command or if not something similar to the mark command in vim.
thanks
You can create internal hyperlinks to navigate between cells. Here's how you can do that:
First, define the destination in the cell you want to link with a html anchor tag and give it an Id. For example:
<a id='another_cell'></a>
Note - When you run the above cell in markdown, it will become invisible. You can add some text above the anchor to identify the cell.
Second, create the internal hyperlink to the destination created above using Markdown syntax in another cell and run it:
[Another Cell](#another_cell)
Now, clicking on link should take you to the destination.
There is a table-of-content extension which uses the heading cells to generate a floating toc with hyperlinks. This is quite similar to marks in vim. You can find it here. This extension is also discussed in this question and looks e.g like
I have searched the questions so far, and it seems that most auto complete questions are about the console.
How can we auto complete a search and load it like the image below. I am new to xcode, so if you have instructions on what I need to do to get it to look like this, then I will appreciate it.
Basically I have an empty table cell, when i touch it to edit, a search box should come up (at the top), and as soon as I type a, all the values for a show up below in individual cells. I can select a cell when I see the value, and it will take me back to the original table and input that value into that cell.
What is the structure after i click the initial cell to bring up the search box
Auto complete with cells?
After this, I imagine I store the value of the variable, and assign it to the cell it originated from.
Attached is an image for reference.
Thank you in advance.
PS - The list to auto complete from has a few thousand values.
Thanks!
For several thousand entries it's unlikely Core Data will give you good performance. Instead you'll need to load the data as a Directed Acyclic Word Graph (DAWG). See other answers on this for further info.
Directed acyclic graph
Best way to implement address book autocompletion on iPhone?