Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/datitran/jupyter2slides
Cloud Native Presentation Slides with Jupyter Notebook + Reveal.js
https://github.com/datitran/jupyter2slides
cloud-native jupyter-notebook nbconvert python3 reveal-js reveal-slide-decks
Last synced: about 1 month ago
JSON representation
Cloud Native Presentation Slides with Jupyter Notebook + Reveal.js
- Host: GitHub
- URL: https://github.com/datitran/jupyter2slides
- Owner: datitran
- License: mit
- Created: 2016-07-26T12:38:17.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-09-03T14:54:44.000Z (over 5 years ago)
- Last Synced: 2024-11-06T03:47:59.861Z (about 1 month ago)
- Topics: cloud-native, jupyter-notebook, nbconvert, python3, reveal-js, reveal-slide-decks
- Language: HTML
- Homepage:
- Size: 23.4 MB
- Stars: 794
- Watchers: 53
- Forks: 176
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-jupyter-resources - GitHub - 73% open · ⏱️ 28.12.2018): (Jupyter-Notebook工具)
- awesome-robotic-tooling - jupyter2slides - Cloud Native Presentation Slides with Jupyter Notebook + Reveal.js. (Documentation and Presentation)
- awesome-robotic-tooling - jupyter2slides - Cloud Native Presentation Slides with Jupyter Notebook + Reveal.js (Documentation and Presentation)
README
# Jupyter Notebook + Reveal.js
## Introduction
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.
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.
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`.
## Getting Started
1. Create the conda environment:
```
conda env create -f environment.yml
```
2. 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.
3. When you are done with editing your notebook, you need to generate the slides with this command:
```
# from ./jupyter2slides/
python create_slides.py --file static/presentation_template.ipynb
```
4. Now you can either call this command to serve the presentation on your local machine
```
python run.py --file static/presentation_template.slides.html
```
or just use `cf push` to push it to the cloud. I use Flask to serve those static files.5. To convert the slides to pdf, I use [decktape](https://github.com/astefanutti/decktape):
```
cd decktape-1.0.0/
./phantomjs decktape.js generic --keycode=Space "http://0.0.0.0:9099/" presentation_template.pdf
```
or you can also use the [`?print-pdf`](https://github.com/hakimel/reveal.js/#pdf-export) option but this is not recommended as the formatting is not displayed correctly.#### Requirements:
- Python 3.6.*
- nbconvert 5.3.*
- reveal.js 3.1.0#### Demo:
- [Presentation Template](http://myslides-on-cf.cfapps.io/) | [PDF](https://www.slideshare.net/DatTran33/presentation-template-from-jupyter2slides)
- [Interactive Template](http://interactive-slides.cfapps.io/) | [PDF](https://www.slideshare.net/DatTran33/interactive-slide-deck-jupyter2slides)## FAQ
###### How can I change the color of the headline, text, links, list etc.?
You can change everything in the `custom.css` file.###### How can I change the footer?
If you need to change the footer, open `jupyter_template.tpl` and go to `Change footer here`.###### Where did you get the image and favicon?
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.###### Does it work with other reveal.js version?
Yes, but this is not recommended as the colors might be broken due to differences in the css styles.## Copyright
See [LICENSE](LICENSE) for details.
Copyright (c) 2016 [Dat Tran](http://www.dat-tran.com/).