{"id":13475892,"url":"https://github.com/datitran/jupyter2slides","last_synced_at":"2025-04-04T19:08:30.237Z","repository":{"id":107997625,"uuid":"64220129","full_name":"datitran/jupyter2slides","owner":"datitran","description":"Cloud Native Presentation Slides with Jupyter Notebook + Reveal.js","archived":false,"fork":false,"pushed_at":"2019-09-03T14:54:44.000Z","size":24539,"stargazers_count":795,"open_issues_count":12,"forks_count":174,"subscribers_count":52,"default_branch":"master","last_synced_at":"2025-03-28T18:08:43.474Z","etag":null,"topics":["cloud-native","jupyter-notebook","nbconvert","python3","reveal-js","reveal-slide-decks"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/datitran.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-07-26T12:38:17.000Z","updated_at":"2024-12-23T17:20:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"2356854a-cf13-49e6-9c3b-b0348679091b","html_url":"https://github.com/datitran/jupyter2slides","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datitran%2Fjupyter2slides","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datitran%2Fjupyter2slides/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datitran%2Fjupyter2slides/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datitran%2Fjupyter2slides/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datitran","download_url":"https://codeload.github.com/datitran/jupyter2slides/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247234921,"owners_count":20905854,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloud-native","jupyter-notebook","nbconvert","python3","reveal-js","reveal-slide-decks"],"created_at":"2024-07-31T16:01:24.481Z","updated_at":"2025-04-04T19:08:30.208Z","avatar_url":"https://github.com/datitran.png","language":"HTML","funding_links":[],"categories":["HTML","Documentation and Presentation","Jupyter-Notebook工具"],"sub_categories":[],"readme":"# Jupyter Notebook + Reveal.js\n\n## Introduction\n\nMicrosoft 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.\n\nAnother 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.\n\nMoreover, 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`.\n\n## Getting Started\n\n1. Create the conda environment:\n    ```\n    conda env create -f environment.yml\n    ```\n2. 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.\n3. When you are done with editing your notebook, you need to generate the slides with this command:\n    ```\n    # from ./jupyter2slides/\n    python create_slides.py --file static/presentation_template.ipynb\n    ```\n4. Now you can either call this command to serve the presentation on your local machine\n    ```\n    python run.py --file static/presentation_template.slides.html\n    ```\n    or just use `cf push` to push it to the cloud. I use Flask to serve those static files.\n\n5. To convert the slides to pdf, I use [decktape](https://github.com/astefanutti/decktape):\n    ```\n    cd decktape-1.0.0/\n    ./phantomjs decktape.js generic --keycode=Space \"http://0.0.0.0:9099/\" presentation_template.pdf\n    ```\n    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.\n\n#### Requirements:\n- Python 3.6.*\n- nbconvert 5.3.*\n- reveal.js 3.1.0\n\n#### Demo:\n- [Presentation Template](http://myslides-on-cf.cfapps.io/) | [PDF](https://www.slideshare.net/DatTran33/presentation-template-from-jupyter2slides)\n- [Interactive Template](http://interactive-slides.cfapps.io/) | [PDF](https://www.slideshare.net/DatTran33/interactive-slide-deck-jupyter2slides)\n\n## FAQ\n\n###### How can I change the color of the headline, text, links, list etc.?\nYou can change everything in the `custom.css` file.\n\n###### How can I change the footer?\nIf you need to change the footer, open `jupyter_template.tpl` and go to `Change footer here`.\n\n###### Where did you get the image and favicon?\nThe 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.\n\n###### Does it work with other reveal.js version?\nYes, but this is not recommended as the colors might be broken due to differences in the css styles.\n\n## Copyright\n\nSee [LICENSE](LICENSE) for details.\nCopyright (c) 2016 [Dat Tran](http://www.dat-tran.com/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatitran%2Fjupyter2slides","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatitran%2Fjupyter2slides","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatitran%2Fjupyter2slides/lists"}