I wanted to create a smart presentation with Jupyter Notebook + nbpresent
Introduction
This article is the 20th day article of jupyter notebook Advent Calendar 2016.
Content and motivation of this article
- Contents
- Talk about how to create a presentation using Jupyter Notebook
- Motivation
- I usually do scientific calculations and make notes with Jupyter, so it would be great if I could make a presentation. I tried to find out
- To be honest, it's not working very well ...
My Python development environment
- Windows 10
- Miniconda (Python 3.5)
Plugin for making presentations
- RISE : https://github.com/damianavila/RISE
- nbpresent : https://github.com/Anaconda-Platform/nbpresent
- I will try this one this time
Install nbpresent
Can be installed with the following command
conda install -c conda-forge nbpresent
How to make a slide (1)
- Select [View]-> [Cell Toolbar]-> [Slideshow] from the menu.
- Change the [Slide type] of the cell to
Slide
![fig1.gif](https://qiita-image-store.s3.amazonaws.com/0/83161/8dfb9f4d-79ea-efb9-4c78-44ed1f46a9b0.gif)
How to make a slide (2)
- Write the content or program you want to put on the slide in the cell appropriately
![fig2.PNG](https://qiita-image-store.s3.amazonaws.com/0/83161/d1f66516-f21a-e3ab-ac28-a74e955c3290.png)
How to make a slide (3)
- Select [Mark like a gift]-> [Slides]-> [Basic]
![fig3-iloveimg-compressed.gif](https://qiita-image-store.s3.amazonaws.com/0/83161/20a8a7b2-8689-fb33-6214-926ce6ee5524.gif)
How to make a slide (4)
- If Basic is selected, slides are added from the beginning, but all but the first one are deleted.
- Because some slides are covered or some are unnecessary
![fig4.PNG](https://qiita-image-store.s3.amazonaws.com/0/83161/f3fdc96c-2838-516b-55e1-33cc1f788f99.png)
How to make a slide (5)
- Add a slide from [+ Slide]
- For the added slide, select [Link] and then select [Source], [Outputs] or [Whole] for the cell you want to add to the slide.
- [Whole] means to include both [Source] and [Outputs] of the program
- Select [Unlink] if you want to cancel the link
- Do this for all the cells you want to put on the slide
![fig5-iloveimg-compressed.gif](https://qiita-image-store.s3.amazonaws.com/0/83161/e179f3b3-f604-d5c6-298e-384a5339d42b.gif)
How to make a slide (6)
- Select Community Themes from [themes]
![fig7.gif](https://qiita-image-store.s3.amazonaws.com/0/83161/bb10fef7-6ef2-ca75-c5fc-8754259b7bfe.gif)
How to make a slide (7)
- Press [Present] on the upper right to play a slide like that.
![fig8.png](https://qiita-image-store.s3.amazonaws.com/0/83161/b67a22c4-8952-5d71-7e9a-081a6d04974e.png)
What could not be solved
- Occasionally a cell different from what you intended may be linked to the slide?
- No matter how many times I tried again, the phenomenon that the summary cell appeared on the third slide occurred.
- Occasionally unintended and changes when rearranging slides
Summary
- It's not very smart, but the above is the result of investigating how to create slides with Jupyter + nbpresent.
- You can also add multiple cells to one slide and change the layout, but we will omit it due to time constraints.
- May be added at a later date