Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to redirect cell output in jupyter

I am using jupyter and jupyter-nbconvert to create a html presentation. However, I have some cells that produce an output image that I want to share on a separate slide. Is it possible to redirect the output of one cell to its own slide?

like image 241
Adam Hunyadi Avatar asked May 17 '17 10:05

Adam Hunyadi


People also ask

How do you shift cells in Jupyter Notebook?

Here I have chosen the shortcuts Ctrl + Shift + ↓ and Ctrl + Shift + ↑ . Finally, press Ctrl + S to save changes. Now, when you are in the command mode, you should be able to move one or more selected cells up or down. The shortcuts will even appear in the menu Edit -> Move Cells Up and Edit -> Move Cells Down .

How do you link a cell in a Jupyter Notebook?

Just add the anchor to the Markdown cell you want to refer to, and link to it using standard Markdown syntax. and the reference can be like: For more details, see [Section 1](#section_1).

What does %% capture do Jupyter?

Capturing Output With %%capture IPython has a cell magic, %%capture , which captures the stdout/stderr of a cell. With this magic you can discard these streams or store them in a variable. By default, %%capture discards these streams. This is a simple way to suppress unwanted output.


1 Answers

You might want to consider using Damian Vila's Jupyter extension RISE. It provides some of the control you need for how cells are displayed in slides.

It is flagged by the latest Jupyter (3.6) as possibly not compatible, but I've seen no problems using it so far.

like image 136
Colin Stark Avatar answered Oct 18 '22 09:10

Colin Stark