You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+13-13
Original file line number
Diff line number
Diff line change
@@ -4,24 +4,27 @@
4
4
5
5
Microsoft PowerPoint is cool. I like it! It is like a Swiss army knife for consultants. You can make beautiful slides with it. When it comes to code though, PowerPoint sucks. Really! The solution is to use [reveal.js](http://lab.hakim.se/reveal-js/#/). It is cool. You can use Markdown to highlight code. It is responsive but like LaTeX, it can be tedious.
6
6
7
-
Another way to use reveal.js is through Jupyter Notebook. You just create a notebook and then use `nbconvert` to get reveal.js slides as well. The standard output is however boring. I seriously mean it! This repo therefore tries to bridge this gap by using customized colors and images which are based on the [Pivotal](https://pivotal.io/) color scheme.
7
+
Another way to use reveal.js is through Jupyter Notebook. You just create a notebook and then use `nbconvert` to get reveal.js slides as well. The standard output is however boring. I seriously mean it! This repo therefore tries to bridge this gap by using customized colors and images.
8
8
9
9
Moreover, we live in a cloud native world with a cloud native lifestyle, cloud native storage, cloud native solution. Why not having cloud native presentation slides then? This repo also solves this problem by simply using `cf push`.
10
10
11
11
## Getting Started
12
12
13
-
1. You can find a notebook template in the `static` folder which contains some examples like cover and divider slides, markdown syntax and many more. Here is a [link](http://www.slideviper.oquanta.info/tutorial/slideshow_tutorial_slides.html#/3) for a nice intro into creating slides with jupyter notebook.
14
-
15
-
2. When you are done with editing your notebook, you need to generate the slides with this command `jupyter nbconvert presentation_template.ipynb --to slides --reveal-prefix "reveal.js-3.1.0" --config slides_config.py`. This command basically looks for the reveal.js folder and converts the notebook into a HTML file. The flag `--config slides_config.py` points to some customized settings defined in the `jupyter_template.tpl`. For example there you can control whether the slide numbers are shown or not or you can also add additional plugins etc..
16
-
17
-
3. Having created the HTML file, it is recommended to use this command `python clean_html.py presentation_template.slides.html` afterwards, especially if you use raw html code in the jupyter notebook. The reason is that in a newer version of nbconvert, it adds section instead of div tags so that data-background doesn't work as expected.
18
-
19
-
4. Now you can either call `python run.py` to serve the presentation on your local machine or just use `cf push` to push it to the cloud. I use Flask to serve those static files and also be aware that if you change the name of the notebook, this has to be reflected in the `run.py` as well.
13
+
1. You can find a notebook template in the `static` folder which contains some examples like cover and divider slides, markdown syntax and many more. Here is a [link](http://www.slideviper.oquanta.info/tutorial/slideshow_tutorial_slides.html#/3) for a nice intro into creating slides with Jupyter notebook.
14
+
2. When you are done with editing your notebook, you need to generate the slides with this command:
or just use `cf push` to push it to the cloud. I use Flask to serve those static files.
20
24
21
25
#### Requirements:
22
26
- Python 3.5.2
23
-
- nbconvert 4.2.0
24
-
- jupyter 1.0.0
27
+
- nbconvert 5.2.1
25
28
- reveal.js 3.1.0
26
29
27
30
#### Demo:
@@ -39,9 +42,6 @@ If you need to change the footer, open `jupyter_template.tpl` and go to `Change
39
42
###### Where did you get the image and favicon?
40
43
The image used for the cover slide is from [Pexel](https://www.pexels.com/) and the favicon is from [freefavicon](http://www.freefavicon.com/). They are both free to use.
41
44
42
-
###### Can I change the name of the jupyter notebook?
43
-
Yes, you can but make sure to adjust the code for `jupyter nbconvert new_name.ipynb ...`, `python clean_html.py new_name.ipynb` and also in the `run.py` file.
44
-
45
45
###### Does it work with other reveal.js version?
46
46
Yes, but this is not recommended as the colors might be broken due to differences in the css styles.
0 commit comments